Service notifications based upon host contacts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
toronado13
Posts: 3
Joined: Tue Sep 22, 2015 11:58 am

Service notifications based upon host contacts

Post by toronado13 »

I just have really basic general service notifications and host notifications setup for all my hosts. I have a few hosts that I want another person to get notifications for those hosts and the services on those hosts. Since I am using generic services across all of the hosts, will I need to re-create those services got the hosts I want to have the notifications go to another person too? Hosts were not a problem, I was able to add them as a contact, but I didn't want to just add contacts to the services, b/c then it would be notifying these people for these services even on hosts I don't need them to get... Is there any sort of inheritance I can setup so that if I add them to a host they would get notifications for all services on that host?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service notifications based upon host contacts

Post by jdalrymple »

There is implied inheritance, but it's overridden by the service so that won't work for you. The alternative would be to remove ALL contacts for the services, then apply them at the host and that *should* work for you. Note that the service will have to be completely void of contacts for that inheritance to apply, including those derived from upstream templates.

A better solution would be properly set up templates, but I think the above is the answer you're looking for.
toronado13
Posts: 3
Joined: Tue Sep 22, 2015 11:58 am

Re: Service notifications based upon host contacts

Post by toronado13 »

Perfect! That did the trick... Yea, I figured I could create templates for each service type, etc... but we have such a simple setup here I was hoping to keep it simple. Thanks!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Service notifications based upon host contacts

Post by hsmith »

Are we all right to close this one and mark it resolved?
Former Nagios Employee.
me.
toronado13
Posts: 3
Joined: Tue Sep 22, 2015 11:58 am

Re: Service notifications based upon host contacts

Post by toronado13 »

Yes, please do.
Locked