passive service freshness with nagios restart
Thomas Guyot-Sionnest
Thomas at zango.com
Tue Jun 19 20:35:31 CEST 2007
> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
> bounces at lists.sourceforge.net] On Behalf Of Michelle Craft
> Sent: June 19, 2007 11:50
> To: nagios-devel at lists.sourceforge.net
> Subject: [Nagios-devel] passive service freshness with nagios restart
>
>
> I use passive checks for several purposes, but I'd like to start using
> them as a daily heartbeat. The problem is that my nagios server restarts
> at least once a day and the freshness timeout is always reset to the
> restart time instead of the last time a passive check was sent. It looks
> like the behaviour I would like was present in older versions, but
> changed:
>
> base/checks.c:
>
> /* CHANGED 02/25/06 SG - passive checks also become stale, so remove
> dependence on active check logic */
> if(temp_service->has_been_checked==FALSE || program_start>temp_service-
> >last_check)
>
> expiration_time=(time_t)(program_start+freshness_threshold);
>
>
> The freshness example given in the docs (freshness.html) is a daily
> heartbeat. It appears that the above change makes a heartbeat impossible
> if the freshness_threshold is ever longer than a reboot cycle.
>
> I think the only way to fix this is to back-out the change (unlikely) or
> add yet another config file option - something like freshness_restart -
> and include it in the checks.c expiration_time logic.
Can't this be saved in the retention files (I thing it's already is) and
then restored?
IMHO that's the way I it should work; a restart shouldn't affect passive
monitoring. We have things running monthly and expect that Nagios will catch
them if they don't run for a month.
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070619/df0ccff1/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list