problems with nagios rotating logs

Scott Brynen scott at electricmail.com
Fri Sep 17 00:18:32 CEST 2004


If you look in the /var/archives, do you have a 2nd log file dated just a few 
seconds earlier (just before midnight)?  It's a BUG in Nagios' log rotate if 
your clock on your system goes backwards, it readjusts the log rotate time 
back too.  If you look in this other file, you'll find a line that says 
"Clock time changed backwards -- readjusting events" or something to that 
effect.



>I've been stuck at a problem for a while now. It seems that nagios 1.2
>for some reason isn't rotating it's logs correctly anymore. The current
>logfile is working perfectly, but in the $NAGIOSDIR/var/archives
>directory starting september 9th every night at midnight exactly I get a
>33 bytes long rotated logfile that only contains one line:>
>
>[TIMESTAMP] LOG ROTATION: DAILY
>
>Before the 9th of September I wasn't having any problems at all.
>




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list