Single service notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

Post by SDohmen »

I checked this to be sure but all of them are enabled.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Single service notification

Post 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?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

Post by SDohmen »

Could you explain a bit more what you mean? I am not 100% sure if i understand correctly.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Single service notification

Post 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.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

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

Re: Single service notification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

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

Re: Single service notification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

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

Re: Single service notification

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked