Issues seen after rebooting Nagios Monitoring Server.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Issues seen after rebooting Nagios Monitoring Server.

Post 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
Attachments
Screen Shot 2017-03-05 at 10.42.15 AM.png
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Issues seen after rebooting Nagios Monitoring Server.

Post 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
Former Nagios employee
https://www.mcapra.com/
kaushalshriyan
Posts: 119
Joined: Fri May 22, 2015 7:12 am

Re: Issues seen after rebooting Nagios Monitoring Server.

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Issues seen after rebooting Nagios Monitoring Server.

Post by mcapra »

Hmm, everything in those files looks fine. What sort of modifications have been made to this system beyond installing Nagios Core itself?
Former Nagios employee
https://www.mcapra.com/
Locked