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
Age of stale passive checks
Re: Age of stale passive checks
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.
"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.
Re: Age of stale passive checks
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 ?
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
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
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
Well let us know if we can be of more help!