Nagios Contacts email notifications

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
brianbelden
Posts: 20
Joined: Thu Jul 20, 2017 2:48 pm

Nagios Contacts email notifications

Post 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
brianbelden
Posts: 20
Joined: Thu Jul 20, 2017 2:48 pm

Re: Nagios Contacts email notifications

Post 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?
kyang

Re: Nagios Contacts email notifications

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Contacts email notifications

Post by tmcdonald »

Thanks for the assist, @kyang! OP, let us know if you need further assistance.
Former Nagios employee
Locked