Re: [Nagios-devel] passive service freshness with nagios restart

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] passive service freshness with nagios restart

Post by Guest »

I have recently patched out nagios code to increase the freshness
timeout after a restart - I will be adding it to the Altinity blog
within the next few days.

I'll post again when I have had time to do it.

Duncs

On 19 Jun 2007, at 16:49, Michelle Craft wrote:

>
> 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.
>
> Unless I'm missing something. Has anyone else run into this
> problem or
> found a different work around?
>
>
>
> --
> Michelle
>
> ----------------------------------------------------------------------
> ---
> 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/
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel



--
Duncan Ferguson

Opsview - Making Nagios Easier

http://www.altinity.com
Tel: +44 (0)870 787 9243
Fax: +44 (0)845 280 1725
Skype: duncan_j_ferguson
MSN: [email protected]







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked