alerts + passive service check

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
feralsboy
Posts: 6
Joined: Tue Oct 01, 2013 6:35 pm

alerts + passive service check

Post by feralsboy »

Hola,

We utilize passive service checks via nsca. I'm looking for information on how to alert if passive check output is not received.

i.e. it's been 1 hr and I haven't received any information if the service check was successful or if it failed.

Any help is appreciated.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: alerts + passive service check

Post by tmcdonald »

That's called a Freshness Check and is pretty painless to set up.
Former Nagios employee
feralsboy
Posts: 6
Joined: Tue Oct 01, 2013 6:35 pm

Re: alerts + passive service check

Post by feralsboy »

re: freshness check.

actually ... I did do something along those lines, although I'm not sure I did it right.

snippet:
check_freshness 1

however, it did not *alert* that there was a problem.

if I did not set this up right, please post an example. Looking at the link you gave, btw ... thanks, ...

this: check_command no-backup-report ; this command is run only if the service results are "stale"

would seem to indicate that I need to create a cmd "no-backup-report" which would be '/bin/mail -s "your screwed" [email protected] < /dev/null'

Is that about right?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: alerts + passive service check

Post by tmcdonald »

That service was included as an example only and this is mentioned in the article.

Most people just set their check_command to check_dummy returning critical if they want to be alerted right away.
Former Nagios employee
feralsboy
Posts: 6
Joined: Tue Oct 01, 2013 6:35 pm

Re: alerts + passive service check

Post by feralsboy »

winner. works like a champ!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: alerts + passive service check

Post by tmcdonald »

feralsboy wrote:winner. works like a champ!
That is what they call me ;)












Except not really. Glad it's working for you, gonna lock this up now.
Former Nagios employee
Locked