Set Service Notification To Go To Host Contact?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Smark
Posts: 32
Joined: Tue Jan 08, 2013 6:12 pm

Set Service Notification To Go To Host Contact?

Post by Smark »

Hello,

As I understand it when you assign a specific contact or contact group to a host, they only get alerts related to the host check (usually a ping). I have several services running on several different types of servers and would like some insight on best practices...

For instance, we have a Citrix farm with Dev, Prod, and QA. We need to monitor the same services on all of them. For simplicity we'll say we have a check called "Citrix Windows Service". I have that check assigned to the host groups "Citrix Dev", "Citrix Prod", and "Citrix QA". The Dev/Prod/QA all have different administrators that need to be notified if something goes wrong. As I understand it, if I set a contact for "Citrix Windows Service", regardless of what server that check is actually running on, it goes to whatever contact I set. Is it possible to tell the service check to notify the contact on whatever host is having the issue? For instance The same "Citrix Windows Service" notified the Citrix Prod admin when the check fails on one of his servers, and the Dev admin when one fails on his servers.

The only other way I can see to accomplish this is to have a "Citrix Dev Windows Service" check that is only assigned to the "Citrix Dev" host group. This seems to create a lot of extra work and kind of defeats the purpose of the template system.

Am I wrong in my analysis? What is the standard way of accomplishing what I described above?

Thank you for your time.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Set Service Notification To Go To Host Contact?

Post by lmiltchev »

The easiest way to add/remove contacts and contact groups in bulk would be the Bulk Modifications Tool. It's included in the Nagios XI Enterprise Edition. If you don't have it, you can test Enterprise for free for 60 days, and see this this is something that would do the job for you. Besides that, you can also review our documentation on multi-tenancy:

http://assets.nagios.com/downloads/nagi ... enancy.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Smark
Posts: 32
Joined: Tue Jan 08, 2013 6:12 pm

Re: Set Service Notification To Go To Host Contact?

Post by Smark »

I'm not looking to bulk change anything. I want one service to alert different people depending on what host the check fails on.

Is that possible?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Set Service Notification To Go To Host Contact?

Post by sreinhardt »

The way you would like to do it is not quite possible. Because the service is defined separately and is not modified once added to a hostgroup to add your individual contacts. It would be best to add the service to each individual host and include it in a service group for things like reporting. To ease the additional work, you can go into the CCM and copy the already created service, modify for your different env and contacts as needed. The only other alternative would be to define escalations, and that would be much more work than just copying the services and small modifications.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked