Individual contact additions to service in a host group

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Individual contact additions to service in a host group

Post by ecarrasq »

Several Windows Hosts "C disk space usage" are being monitored by NagiosXi and the Windows Admins are receiving those notifications. I created a "C disk space usage" Service and attached it to a Host Group where all the Windows Servers reside. This way, when a new Windows Host is added to Nagios, it is added to this Host Group, so that we won't have to add the Windows Server Admin contacts one by one.

A different administrator would like to receive notifications from the "C disk space usage", but only from selected Windows Hosts. How can I add a contact only to a Windows Host "C disk space usage" service when it is part of a Host Group definition without having that admin receive ALL alerts from ALL servers tied to that Host Group?

Thanks,
Eddie
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Individual contact additions to service in a host group

Post by scottwilkerson »

You can add an individual contact to a host / service in
Configure -> Core Config Manager -> Host/Service ->Modify your Service
click Alert Settings Tab
Add the contact.
Save
Apply Configuration.

Any Host or Service can have Contacts and Contact Groups
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Individual contact additions to service in a host group

Post by ecarrasq »

I'll illustrate to hopefully detail my issue better:

Scenario:
1. I created the "Ping" service named "Ping_Prod" which has 3 contacts assigned to it.
2. Attached the newly created "Ping_Prod" to a host group called "Windows_Prod"
3. By adding hosts to the Host Group, those added hosts and any other host added to it will receive the Ping_Prod service check


Service

Ping_Prod

Host Group

Windows_Prod

Hosts
Windows Server01
Windows Server02
Windows Server03
Windows Server04
Windows Server05


Problem:

By default on the above, I can add the contacts for the service "Ping_Prod", so when a server is added to the "Windows_Prod" group, they will automatically be assigned those notification contacts.

If a new "Contact" would like to receive and/or see the notifications for 'Ping_Prod", how would I make that happen without sending that new contact all the alerts for all the other servers in that host group? I tried going to the "Core Config Manager" for one of the servers from the host group above, but the "Ping_Prod" service does not show up there. It does show up in NagiosXi, but if I try to edit it, it tells me I can only edit it in Core Core.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Individual contact additions to service in a host group

Post by lmiltchev »

Can't you add the "Ping_Prod" service to this particular host and then add the new "Contact" under the "Alert Settings" in "Host Management"? This way, this contact will not be notified about the other hosts, members of the "Windows"Prod" hostgroup.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Individual contact additions to service in a host group

Post by ecarrasq »

Wouldn't I get duplicate services?

If there is already a "Ping_prod" service assigned to a Host Group. Any hosts in that group will get the "Ping_Prod" service check. If I add the "Ping_Prod" service to a individual host from the Host Group, wouldn't I get duplicate services, and if so, would that matter?

I that instance I would have:

Windows_Server01 inside "Windows_Prod" host group which is getting "Ping_Prod" service monitored. I would then add another "Ping_Prod" service to "Windows_Server01" host through Core Config Manager? This way the Windows Server Administrators will always get their notifications to the "Ping_Prod" service and the additional contact will get theirs. I'm still concerned about the "Duplicate Service"...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Individual contact additions to service in a host group

Post by lmiltchev »

I don't believe you will get a "Duplicate Service" warning. Just to be on a safe site, I tested a similar scenario and added a service to a hostgroup and to a host, which is a member of the same hostgroup. Everything worked fine. I ran the Write Config Tool to make sure I don't get any configuration errors and I didn't. So, if you want, you gave give it a try. If things don't work like they are supposed to, you can always remove this service from the host definition.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Individual contact additions to service in a host group

Post by ecarrasq »

SUCCESS!

It's working so far; However, I had to rename the service name from "Drive C: Disk Usage" to something else, as the newly created service that I attached to the Host Group was not showing up in NaigosXi.

Thank you very much for your help!
Eddie
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Individual contact additions to service in a host group

Post by scottwilkerson »

Very good we like Success

:lol:
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked