Page 1 of 1
Customed notifications
Posted: Tue Apr 17, 2012 7:32 am
by tanyzampa
Hi everyone,
Using a personnal plugin (which is return an int value), I'm trying to send a notification after 3 checks which results = 0 (the returned value by the plugin).
So, I tried to set the "First notifications delay" to 30, and the "Check interval" to 10, but it does'nt seems OK ...
Is anyone have any idea to bypass this problem ?
thx
Re: Customed notifications
Posted: Tue Apr 17, 2012 10:50 am
by scottwilkerson
If your plugin is returning 0, that is the OK state.
http://nagiosplug.sourceforge.net/devel ... html#AEN76
By default nagios sends notifications when thing are not OK
Re: Customed notifications
Posted: Wed Apr 18, 2012 4:13 am
by tanyzampa
No, I wasn't clear.
I'm monitoring number of connexions to a server by a personnal plugin, which is OK.
I meant, if the number I get from the MIB is 0 connexions, I want to wait 3 checks before send a notification.
The check is every 10 minutes.
Re: Customed notifications
Posted: Wed Apr 18, 2012 4:57 pm
by agriffin
You can do what you want using
service escalations, but it might make more sense to use
flap detection in your situation.
Re: Customed notifications
Posted: Thu Apr 19, 2012 9:16 am
by tanyzampa
Hmm ... the services is not flapping.
For the moment, I put max_check_attempt = 3, check_interval = retry_interval = 10 (10 minutes).
Wait and see !
Re: Customed notifications
Posted: Fri Apr 20, 2012 9:27 am
by agriffin
Sorry, I misread your situation and shouldn't have suggested flap detection. Anyway, let us know if things are working.