Page 1 of 1

Issues seen after rebooting Nagios Monitoring Server.

Posted: Sun Mar 05, 2017 7:48 am
by kaushalshriyan
Hi,

I am currently running Nagios 4.2.0 on CentOS Linux release 7.3.1611 (Core) and have upgraded the nagios monitoring server using yum -y update and have to reboot the server since it has new security kernel. After rebooting the server every time i have to run the below commands.

Issue No. 1
--------------------------
cd /usr/local/nagios/var/
mkdir -p spool/checkresults
mkdir rw
mkdir archives
chown -Rc nagios.nagios /usr/local/nagios/var/
Issue No. 2
--------------------------

After reboot the alert notifications is disabled and I have to enable notifications for SSH service for every host. is there a way to enable notifications for SSH service in one click or any configs to be modified to avoid disabling of SSH Services of every hosts. Please find the screenshot which is attached.

Any help will be highly appreciable. Thanks in Advance. Please do let me know if you need any nagios configs or logs to be shared.

Thanks and Regards,

Kaushal

Re: Issues seen after rebooting Nagios Monitoring Server.

Posted: Mon Mar 06, 2017 1:48 pm
by mcapra
Can you share the contents of your nagios.cfg file as well as retention.dat? These are typically located in /usr/local/nagios/etc and /usr/local/nagios/var respectively.

Can you also share the output of:

Code: Select all

ls -al /usr/local/nagios/var

Re: Issues seen after rebooting Nagios Monitoring Server.

Posted: Tue Mar 07, 2017 9:04 am
by kaushalshriyan
Hi mcapra,

Please find the below details :-

http://pastebin.centos.org/69331/88952451/raw/ (/usr/local/nagios/var/retention.dat)
http://pastebin.centos.org/69336/89534814/raw/ (/usr/local/nagios/etc/nagios.cfg)

Regards,

Kaushal

Re: Issues seen after rebooting Nagios Monitoring Server.

Posted: Tue Mar 07, 2017 4:45 pm
by mcapra
Hmm, everything in those files looks fine. What sort of modifications have been made to this system beyond installing Nagios Core itself?