Single service notification
Re: Single service notification
I checked this to be sure but all of them are enabled.
Re: Single service notification
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
Could you explain a bit more what you mean? I am not 100% sure if i understand correctly.
Re: Single service notification
Scratch that previous post of mine.
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.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.
Re: Single service notification
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Single service notification
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
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
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Single service notification
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
http://old.nagios.org/developerinfo/ext ... ndlist.php
Specifically
SEND_CUSTOM_HOST_NOTIFICATION
SEND_CUSTOM_SVC_NOTIFICATION
Re: Single service notification
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Single service notification
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
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