Nagios Core notification query

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
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Nagios Core notification query

Post by neworderfac33 »

Good afternoon,

Within my windows,cfg file, I have a number of hosts that refer to "windows-server" as defined in templates.cfg
"windows-server" has a contact group defined.

Within windows.cfg, I also have a number of services that refer to "generic-service" also as defined in templates.cfg
"generic-service" ALSO has a contact group defined.

Although the obvious answer would be to have the contact group defined in one place or the other but not both, at the moment, if a particular service for a particular server generated an error condition, where would the email alerts be sent - to the contact group defined in "windows-server" or the contact group defined in "generic-service"?

Thanks in advance

Pete
kiklop
Posts: 7
Joined: Fri May 20, 2011 6:20 am

Re: Nagios Core notification query

Post by kiklop »

HI,

If service changes state to non-OK, nagios will generate notification for contact-group (or contact) defined for this service (not host)

If server goes down, nagios will generate notification for group defined in host cfg

So you can define one contact group : Admins

but you need to assign this group to Hosts and also to all services

or you can split this, create 2 groups (Host Admins, Service Admins) and assign different group to host/services..
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Nagios Core notification query

Post by neworderfac33 »

That's explained it perfectly - thank you! :-)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core notification query

Post by rkennedy »

Thanks @kiklop!

@neworderfac33 - are we good to close this thread out?
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Nagios Core notification query

Post by neworderfac33 »

Yes - close away! :-)
Locked