Clock Skew / Double log rotates

Scott Brynen scott at electricmail.com
Thu Aug 12 02:04:16 CEST 2004


I think I may have a line on why logs rotate twice.....

I don't think that nagios is readjusting (or is double adjusting) the time of 
the log rotate when it detects a system time change.  Likely it's adjusting 
it when it shouldn't be (as it's a fixed point in time).  Is there a way of 
turning off the 'Compensating' aspect of nagios?


See the attached log entries from my server for the last few days.  Note that 
the log is rotated EXACTLY n seconds early, where n = sum of all the 
backwards time changes (hourly ntp update for date).

nagios-08-07-2004-23.log:[1091866377] Warning: A system time change of 4 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091873577] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091884378] Warning: A system time change of 7 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091898779] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091905982] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091913177] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091920376] Warning: A system time change of 5 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091927577] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091934777] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-07-2004-23.log:[1091941978] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-00.log:[1091948363] LOG ROTATION: DAILY
nagios-08-08-2004-23.log:[1091948400] LOG ROTATION: DAILY  
nagios-08-08-2004-23.log:[1091949183] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091956382] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091963584] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091970778] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091977977] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091985178] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091992378] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1091999577] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1092006776] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1092013977] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1092021178] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-08-2004-23.log:[1092028377] Warning: A system time change of 4 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-00.log:[1092034763] LOG ROTATION: DAILY
nagios-08-09-2004-23.log:[1092034800] LOG ROTATION: DAILY
nagios-08-09-2004-23.log:[1092035577] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092042778] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092049977] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092057177] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092064378] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092071579] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092085970] Warning: A system time change of 11 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092093177] Warning: A system time change of 4 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092100377] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092107577] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-09-2004-23.log:[1092114778] Warning: A system time change of 3 
seconds (backwards in time) has been detected.  Compensating...
nagios-08-10-2004-00.log:[1092121158] LOG ROTATION: DAILY
nagios-08-11-2004-00.log:[1092121200] LOG ROTATION: DAILY



-- 
Scott Brynen
The Electric Mail Company
604-482-1111 x154



-------------------------------------------------------
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
_______________________________________________
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