<br><tt><font size=2>nagios-devel-bounces@lists.sourceforge.net schrieb
am 11.09.2008 20:53:18:<br>
<br>
> So although this is a bug, I wouldn't expect Nagios to work very well<br>
> with time shifts and there's many other applications/daemons out there<br>
> that could fail as well. You shouldn't have to constantly re-adjust
the<br>
> clock - if you do then there might me a bigger problem...<br>
</font></tt>
<br><tt><font size=2>Of course it's a problem rooted somewhere deeper in
the environment,</font></tt>
<br><tt><font size=2>yet I don't think programs should suffer from it.</font></tt>
<br><tt><font size=2><br>
> Have you tried running an ntp daemon? It should try keeping the clock<br>
> sync without causing time shifts (as Andreas explained, it slows down
or<br>
> speed up the clock instead). What OS is it on? under a VM? custom<br>
> compiled kernel? There might be something broken or unsupported in
your<br>
> setup that causes this. If you don't fix it you shouldn't expect your<br>
> system to work very well anyway.<br>
</font></tt>
<br><tt><font size=2>Running ntpd won't help at all. The timeshifts happen
because the</font></tt>
<br><tt><font size=2>systemclock is running too fast. It doesn't really
matter if you</font></tt>
<br><tt><font size=2>adjust it back in little ticks or in one big bang
once a day.</font></tt>
<br><tt><font size=2>You can easily reproduce this with running an older
2.6 kernel</font></tt>
<br><tt><font size=2>inside a VM using the clocksource=pit kernelparameter.
The systemclock</font></tt>
<br><tt><font size=2>will be running 1 jitter too fast, resulting in 1
sec backshift like</font></tt>
<br><tt><font size=2>every 5 minutes - either from ntpd or from the vmware-tools
timesync.</font></tt>
<br>
<br><tt><font size=2>The only workaround I can think of is running a</font></tt>
<br><tt><font size=2>"/etc/init.d/nagios stop</font></tt>
<br><tt><font size=2>ntpdate</font></tt>
<br><tt><font size=2>/etc/init.d/nagios start"</font></tt>
<br><tt><font size=2>once a day - which is quite ugly though.</font></tt>
<br><tt><font size=2><br>
> One thing that might help is setting this to 1 in your nagios.cfg.
This<br>
> will make Nagios periodically check for services that aren't scheduled:<br>
> <br>
> check_for_orphaned_services=1<br>
</font></tt>
<br><tt><font size=2>Well, the problem is that the service IS scheduled
- just 1 year ahead.</font></tt>
<br><tt><font size=2><br>
> Besides, to fix this I would make the sanity check reschedule the
check<br>
> for the end of the check period (possibly only if it's not scheduled<br>
> already), as it wouldn't have to check for this condition for every<br>
> service on every time shift.<br>
</font></tt>
<br><tt><font size=2>Why for the end? You'll still lose like all checks
then. It runs the check</font></tt>
<br><tt><font size=2>once and then sleeps, because the check_period is
not valid anymore. Then</font></tt>
<br><tt><font size=2>the time shifts again - rinse and repeat. You'll end
up with one check</font></tt>
<br><tt><font size=2>each day for such services.<br>
</font></tt>
<br><tt><font size=2>Regards</font></tt>
<br><tt><font size=2>        Sascha</font></tt>
<br>
<br><font size=2 face="sans-serif">-- <br>
Sascha Runschke<br>
IT-Infrastruktur<br>
<br>
GFKL Financial Services AG<br>
Limbecker Platz 1<br>
45127 Essen<br>
<br>
Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201)
102-1102105</font>
<br>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">GFKL Financial Services AG</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522</span>