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
Customed notifications
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Customed notifications
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
http://nagiosplug.sourceforge.net/devel ... html#AEN76
By default nagios sends notifications when thing are not OK
Re: Customed notifications
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.
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
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
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 !
For the moment, I put max_check_attempt = 3, check_interval = retry_interval = 10 (10 minutes).
Wait and see !
Re: Customed notifications
Sorry, I misread your situation and shouldn't have suggested flap detection. Anyway, let us know if things are working.