Bug#339366: [Pkg-nagios-devel] Bug#339366: After update, Nagios runs, but no status

sean finney seanius at debian.org
Tue Nov 15 22:35:41 UTC 2005


hi daniel,

On Tue, Nov 15, 2005 at 09:03:02PM +0000, Daniel Pocock wrote:
> I reviewed the NEWS file and manually corrected the paths in 
> /etc/nagios/nagios.cfg:
> 
> command_file=/var/run/nagios/nagios.cmd
> status_file=/var/cache/nagios/status.log
> temp_file=/var/cache/nagios/nagios.tmp
> state_retention_file=/var/cache/nagios/status.sav
> log_file=/var/log/nagios/nagios.log
> comment_file=/var/log/nagios/comment.log
> downtime_file=/var/log/nagios/downtime.log
> lock_file=/var/log/nagios/nagios.lock
> log_archive_path=/var/log/nagios/archives

you might want to check cgi.cfg to make sure the settings in that
are also good.  for example, nagios_check_command, maybe.

> agios problem: located 3 processes, status log updated 1132088447 
> seconds ago

my guess that 1132088447 seconds ago was the epoch when you did
the check, and that this resulted from something funny with
the status log.

> However, that time interval seems very wrong after I check the file time 
> by hand:
> 
> /etc/nagios# date
> Tue Nov 15 21:01:44 GMT 2005
> /etc/nagios# ls -l /var/cache/nagios/status.log
> -rw-rw-r--  1 nagios nagios 0 Nov 15 21:01 /var/cache/nagios/status.log
> 
> I can see that Nagios is performing the checks, but I can't see the 
> status.  Does anybody know what is wrong?

check_nagios actually checks data inside the file for a timestamp, so
the fact that it has a size of zero makes me suspect this may
be the root of the problem.  might want to make sure the nagios daemon
is actually writing into there and not somewhere else.  also, might
want to make sure that /etc/init.d/nagios stop actually stops nagios,
as there seem to be spurious problems of runaway nagios processes
when restarting the daemon.


	sean

-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20051115/219e579b/attachment.pgp


More information about the Pkg-nagios-devel mailing list