Bug - Double Log Rotates
Scott Brynen
scott at electricmail.com
Fri Aug 13 07:50:15 CEST 2004
A number of people have complained about double log rotates, and I've tracked it
down.
When nagios logs a "system time change (backwards)" it adjusts all of its
internal events back that number of seconds. No longer is the rotate sched for
midnight, but now 23:59:47 (assuming it rolled back 13 seconds). It rolls,
then rescheds a rotate at the next midnight (in 3 seconds). See attached log
for a log-rotate happening 42 seconds early after 42 seconds of backward clock
was applied...
$ egrep -ih '(Backwards|ROTAT)' nagios-0* | sort
[1092035577] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092042778] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092049977] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092057177] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092064378] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092071579] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092085970] Warning: A system time change of 11 seconds (backwards in time) has
been detected. Compensating...
[1092093177] Warning: A system time change of 4 seconds (backwards in time) has
been detected. Compensating...
[1092100377] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092107577] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092114778] Warning: A system time change of 3 seconds (backwards in time) has
been detected. Compensating...
[1092121158] LOG ROTATION: DAILY
[1092121200] LOG ROTATION: DAILY
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
More information about the Developers
mailing list