[Pkg-nagios-devel] Bug#294178: Init script fails to check whether nagios is running
jan gregor
jan gregor <pamela@rak.bb.euroweb.sk>, 294178@bugs.debian.org
Tue, 8 Feb 2005 11:53:49 +0100
Package: nagios-text
Version: 1.3-cvs.200501
Init script /etc/init.d/nagios tries to check whether nagios is running
(also) using this command:
/usr/lib/nagios/plugins/check_nagios -F /var/log/nagios/status.log -C 'nagios'
This check fails, if nagios had not updated it's status log during last 1
second. Default update interval is 15 seconds.
This is example of output of this command and return value:
nabu:~# /usr/lib/nagios/plugins/check_nagios -F /var/log/nagios/status.log -C 'nagios' ; echo $?
Nagios problem: located 10 processes, status log updated 1 second ago
1
Suggested fix: increase expire time in check command using -e, for example:
/usr/lib/nagios/plugins/check_nagios -F /var/log/nagios/status.log -e 15 -C 'nagios'.
Best regards
Jan Gregor