Page 1 of 1

alerts + passive service check

Posted: Mon Dec 02, 2013 9:59 pm
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.

Re: alerts + passive service check

Posted: Tue Dec 03, 2013 10:22 am
by tmcdonald
That's called a Freshness Check and is pretty painless to set up.

Re: alerts + passive service check

Posted: Tue Dec 03, 2013 2:02 pm
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?

Re: alerts + passive service check

Posted: Tue Dec 03, 2013 2:21 pm
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.

Re: alerts + passive service check

Posted: Wed Dec 04, 2013 2:39 pm
by feralsboy
winner. works like a champ!

Re: alerts + passive service check

Posted: Wed Dec 04, 2013 2:42 pm
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.