Nagios Email Alerts

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
garmestar
Posts: 3
Joined: Tue Jan 17, 2012 1:59 pm

Nagios Email Alerts

Post by garmestar »

Is it possible to set up more than one email address for Nagios to send alerts to? If so how and where do I configure this?

I tried to fiddle around with it but it doesn't work. In Contacts.cfg, I tried to add another email address seperated by a comma as you do with the hostnames in the windows.cfg but it will only send to the 1st email address. When I tried to add another contact group, the nagios check failed saying it couldn't find any of the hosts.

Any assistance would be grand.

Thanks!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios Email Alerts

Post by mguthrie »

Yeah, you can use the address1, address2, etc config directives, and then reference them in your notification handler as $ADDRESS1$ $ADDRESS2$, etc.

http://nagios.sourceforge.net/docs/3_0/ ... ml#contact
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Nagios Email Alerts

Post by jsmurphy »

You can assign multiple addresses as mguthrie said but then you will need to update the notification handler any time you add a new email, the better solution would be to create a new contact for each email and assign all relevant contacts to a contact group... that way you can centralize all the management to the contacts.cfg and if you ever need to stop sending to an address you just need to remove the contact from the group.
Locked