Page 1 of 1

Nagios Core notification query

Posted: Mon Jul 18, 2016 6:43 am
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

Re: Nagios Core notification query

Posted: Mon Jul 18, 2016 7:18 am
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..

Re: Nagios Core notification query

Posted: Mon Jul 18, 2016 7:25 am
by neworderfac33
That's explained it perfectly - thank you! :-)

Re: Nagios Core notification query

Posted: Mon Jul 18, 2016 10:44 am
by rkennedy
Thanks @kiklop!

@neworderfac33 - are we good to close this thread out?

Re: Nagios Core notification query

Posted: Tue Jul 19, 2016 7:35 am
by neworderfac33
Yes - close away! :-)