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?
Single service notification
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Single service notification
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
Re: Single service notification
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.
[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
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.
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.
Re: Single service notification
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
Correct.
Re: Single service notification
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.
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.
It seems its not working for me. I made some screenshots of the configuration i used.
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.
Re: Single service notification
Does it work if you use 1 for the first notification, and 1 for the last notification?
Re: Single service notification
Nothing happens when i try that even though the service is on critical.
Re: Single service notification
Hmm, are notifications enabled for this service? I wonder is something is keeping the service from even getting to the escalation logic.