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

Single service notification

Post by SDohmen »

This is perhaps a complex question but here it goes. I got the following setup:

10 (passive) services each defined in the central.
10 customers who all share those same 10 services.
Each customer has its own host template where the hosts are added too.
The Services have a single (passive) template.

So in the front view i see all 10 servers with each 10 services allocated to them.

Normally when a customer wants access to there own hosts i just add him to the host template of his company and its fine. Today however i got the request to add a person to a single service for the notification.

My question now is how can i do this in my current setup?

If i add the person to the host he will still get all 10 services and not just that 1.
If i add the person to the service he wants he will get that service from all 10 hosts.

Does anyone have a solution for this without having to create the services for each host separately?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Single service notification

Post by scottwilkerson »

I think the only way to do this (other than what you mentioned) would be to add that user and any other users that should receive notifications for that service to an escalation, and let the escalation handle all of the notifications for that 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 »

Can you explain this a bit further? I never worked with the escalations so i am not sure where to start.

[EDIT]
I was reading http://nagios.sourceforge.net/docs/3_0/escalations.html but i am not sure if this is what we are looking for.

Unless i am mistaking this would still notify that user for all services/host that i enter there.

For example if i would add the service there it would give him notifications for all services that have a different host added to it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Single service notification

Post by scottwilkerson »

Go to Configure -> CCM -> Service Escalations
Add New
Select Host
DON'T select hostgroup
Select Service
Select All contacts that should receive notifications for this host/service
enter Config Name (just to identify this escalation)
Set First notification = 1
Set Notification interval
Set Escalation period (24x7 ?)
Select Escalation options

This will override the normal notification for this particular combination of host/service combination.
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 »

So if i understand you correctly this will only give a notification for that host/service combo and not all other hosts with that service or services for that host?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Single service notification

Post by scottwilkerson »

Correct.
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 »

Sorry for the late response but i only had time yesterday to test it.

It seems its not working for me. I made some screenshots of the configuration i used.
service_esc.PNG
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.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Single service notification

Post by mguthrie »

Does it work if you use 1 for the first notification, and 1 for the last notification?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Single service notification

Post by SDohmen »

Nothing happens when i try that even though the service is on critical.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Single service notification

Post by mguthrie »

Hmm, are notifications enabled for this service? I wonder is something is keeping the service from even getting to the escalation logic.
Locked