Customed notifications

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
tanyzampa
Posts: 3
Joined: Tue Apr 17, 2012 7:26 am

Customed notifications

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Customed notifications

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tanyzampa
Posts: 3
Joined: Tue Apr 17, 2012 7:26 am

Re: Customed notifications

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Customed notifications

Post by agriffin »

You can do what you want using service escalations, but it might make more sense to use flap detection in your situation.
tanyzampa
Posts: 3
Joined: Tue Apr 17, 2012 7:26 am

Re: Customed notifications

Post 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 !
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Customed notifications

Post by agriffin »

Sorry, I misread your situation and shouldn't have suggested flap detection. Anyway, let us know if things are working.
Locked