Page 1 of 1

Age of stale passive checks

Posted: Sun Sep 15, 2013 1:05 pm
by jvejv
Hi *,

Configuring passive checks, I'd like to see >how< old is the last data when a service becomes stale.
The 'no-backup-report' command in http://nagios.sourceforge.net/docs/3_0/freshness.html does
not show that. I can imagine a complicated way around (associating a file with every passively checked
item and checking the age of the file), but that's really ugly.
Better ideas are most welcome.

Thanks, jvejv

Re: Age of stale passive checks

Posted: Mon Sep 16, 2013 10:57 am
by abrist
You could always add the freshness value to the duration of the stale status to get a total.

Re: Age of stale passive checks

Posted: Sat Sep 21, 2013 11:20 am
by jvejv
Thanks, that's not bad :-).
OTOH, it would be nice to have that summed by Nagios. Is there a way to get the age of the data from the last passive check of a service into a plugin ?

Re: Age of stale passive checks

Posted: Mon Sep 23, 2013 9:39 am
by slansing
What do you mean by getting it into a plugin? Are you talking about the age of a passive check result? You could scape this directly from the nagios.log file, though we don't have a guide on scraping information from there with custom plugins you could use a similar method that some of the log file plugins use.

Re: Age of stale passive checks

Posted: Wed Oct 02, 2013 6:59 am
by jvejv
Thanks for the hint - I'll try it.

Re: Age of stale passive checks

Posted: Wed Oct 02, 2013 9:14 am
by slansing
Well let us know if we can be of more help!