Page 1 of 1
Nagios Contacts email notifications
Posted: Tue Aug 01, 2017 10:09 am
by brianbelden
We have Nagios3 set up running on Debian machines and currently we have two contacts in contacts_nagios2.cfg. Both of the contacts are listed under members of our admins contactgroup. What I am trying to do is separate these contacts out, so one of the contacts only gets some alerts and the other contact receives all of the alerts still. What process do I need to take to make this possible.
Thanks
Re: Nagios Contacts email notifications
Posted: Tue Aug 01, 2017 10:59 am
by brianbelden
Currently in services_nagios2.cfg all of the services have a command use generic-service and under generic-service_nagios2.cfg there is a command contact_groups admins set. Do I need to set the contact_groups command in the services_nagios2.cfg file?
Re: Nagios Contacts email notifications
Posted: Tue Aug 01, 2017 1:52 pm
by kyang
Hi
@brianbelden,
Have you taken a look at this documentation on Object definitions for defining contacts?
This will allow you to contact a specific admin based on host/service options (the state of your host/service - UP, DOWN, etc)
https://assets.nagios.com/downloads/nag ... ml#contact
Also, do you have an MTA installed on your Debian machines?
Here is another forum that is similar to this topic.
https://support.nagios.com/forum/viewto ... =7&t=33610
Does this help at all? If not a Nagios Admin will help.
Re: Nagios Contacts email notifications
Posted: Wed Aug 02, 2017 9:36 am
by tmcdonald
Thanks for the assist,
@kyang! OP, let us know if you need further assistance.