Age of stale passive checks

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
jvejv
Posts: 12
Joined: Sat Aug 13, 2011 12:24 pm

Age of stale passive checks

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Age of stale passive checks

Post by abrist »

You could always add the freshness value to the duration of the stale status to get a total.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jvejv
Posts: 12
Joined: Sat Aug 13, 2011 12:24 pm

Re: Age of stale passive checks

Post 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 ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Age of stale passive checks

Post 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.
jvejv
Posts: 12
Joined: Sat Aug 13, 2011 12:24 pm

Re: Age of stale passive checks

Post by jvejv »

Thanks for the hint - I'll try it.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Age of stale passive checks

Post by slansing »

Well let us know if we can be of more help!
Locked