Page 1 of 1

Nagios Email Alerts

Posted: Tue Mar 06, 2012 4:36 pm
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!

Re: Nagios Email Alerts

Posted: Tue Mar 06, 2012 5:23 pm
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

Re: Nagios Email Alerts

Posted: Tue Mar 06, 2012 5:32 pm
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.