From: Scott B. <sc...@el...> - 2004-09-16 22:15:20
|
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. > |