Page 1 of 1
Stale service and host checks
Posted: Wed Nov 09, 2011 9:09 am
by MMG3
We have a Nagios XI 2011R1.5 installation on CentOS 5.5 that has apparently gone on a long vacation... Since 2001-11-01, no service checks or host checks appear to be updating. There is a nagios process running, but /usr/local/nagios/var/nagios.log does not appear to be updating. The previous admin set this nagios installation up as a ramdisk-based setup; it is also running on a VM. Linux kernel is 2.6.18-194.32.1.el5. This machine is monitoring about 1350 hosts with 4300 services, and I am at my wits' end - can someone tell me where to start?
I have stopped and restarted the nagios service. I have also rebooted the machine. Neither appears to have any impact.
Thanks.
Re: Stale service and host checks
Posted: Wed Nov 09, 2011 11:30 am
by nscott
When you stop or restart the service do you see anything show up in the nagios.log?
When you start the service does it create a /usr/local/nagios/var/rw/nagios.cmd ? What are the permissions on the directory /usr/local/nagios/var/ and /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/
Re: Stale service and host checks
Posted: Wed Nov 09, 2011 2:05 pm
by MMG3
nscott wrote:When you stop or restart the service do you see anything show up in the nagios.log?
There is no change in nagios.log when the service is stopped, started, or restarted.
When you start the service does it create a /usr/local/nagios/var/rw/nagios.cmd ?
Yes, it does, and the file is removed when nagios is stopped.
What are the permissions on the directory /usr/local/nagios/var/ and /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/rw/
ll /usr/local/nagios/var/
lrwxrwxrwx 1 apache nagios 18 Jun 27 16:54 var -> /var/nagiosram/var
drwxrwsr-x 2 nagios nagcmd 60 Nov 9 13:03 rw
Re: Stale service and host checks
Posted: Mon Nov 14, 2011 9:17 am
by MMG3
Is there any other information you need?
Re: Stale service and host checks
Posted: Mon Nov 14, 2011 1:50 pm
by mguthrie
That var directory should be owned by nagios. I might suggest this fix, it should take care of any other permissions issues.
http://library.nagios.com/library/produ ... -nagios-xi
Re: Stale service and host checks
Posted: Tue Nov 15, 2011 9:09 am
by MMG3
Thank you! That seems to have resolved the issue.