Page 2 of 2
Re: Single service notification
Posted: Mon Aug 06, 2012 2:18 am
by SDohmen
I checked this to be sure but all of them are enabled.
Re: Single service notification
Posted: Mon Aug 06, 2012 10:36 am
by mguthrie
Just for fun could we try setting the regular contact to be a bogus contact, and then see if the escalation notification goes out?
Re: Single service notification
Posted: Tue Aug 07, 2012 1:54 am
by SDohmen
Could you explain a bit more what you mean? I am not 100% sure if i understand correctly.
Re: Single service notification
Posted: Tue Aug 07, 2012 12:54 pm
by mguthrie
Scratch that previous post of mine.
I send a passive result with critical to the avail-ping service but i did not get any mail. To be sure i tried to send a test mail and that worked fine. Mailing itself is enabled on my own user.
In going back and re-reading this, if you still have active checks enabled, and your max_check_attempts is greater than 1, I think nagios would have just issued a retry instead of an alert for that service.
Re: Single service notification
Posted: Wed Aug 08, 2012 12:38 am
by SDohmen
So in that case it would only send after the max attempts was passed. In our case thats 4. Is there a other way to test the sending of these notifications?
Re: Single service notification
Posted: Wed Aug 08, 2012 9:27 am
by scottwilkerson
You can send a custom notification based on the host/service by going to
Host/Service Detail Page -> Advanced Tab -> "Send custom notification"
This will send a notification to the contacts associated with the host/service
Re: Single service notification
Posted: Mon Aug 27, 2012 2:45 am
by SDohmen
The problem here is that its only 1 time. We want it automated so it always happens when something happens to a particular host/service.
Re: Single service notification
Posted: Mon Aug 27, 2012 9:23 am
by scottwilkerson
You would have to use the External Commands outlined here
http://old.nagios.org/developerinfo/ext ... ndlist.php
Specifically
SEND_CUSTOM_HOST_NOTIFICATION
SEND_CUSTOM_SVC_NOTIFICATION
Re: Single service notification
Posted: Thu Aug 30, 2012 3:12 am
by SDohmen
How can i make a custom notification that only goes for 1 host/service combination and not overwriting the standard notification that is already in place?
Re: Single service notification
Posted: Thu Aug 30, 2012 12:11 pm
by scottwilkerson
You would have to make a script as outlined in the page I posted and then create a command in Configure -> CCM -> Commands that calls the script using misc commands as the command type.
Then you can go to Configure -> CCM -> host/service -> Modify -> check Settings tab
select your command from "Event handler" list
set "Event handler enabled" to on
save
Apply configuration