Page 1 of 1

E-mails notification of a specific host to specific user

Posted: Sun Dec 07, 2014 2:54 pm
by sidserra
Hi friends,

first all, excuse me my poor English, hehehe...

I found nothing on this forum about sending e-mails notification by Nagios of a particular host for a particular user or group. I mean, I have some hosts (using template linux-server) and I whould like when any host is down, the Nagios sends e-mails notifications following below:

host1 => contact1 or group1
host2 => contact2 or group2

The Nagios is sending notifications normally, but all hosts to only one user.

Any help? :)

Re: E-mails notification of a specific host to specific user

Posted: Sun Dec 07, 2014 7:17 pm
by Box293
Your host template or host object definition can have the following directives defined to email contacts and contact groups:

contact
This is a list of the short names of the contacts that should be notified whenever there are problems (or recoveries) with this host. Multiple contacts should be separated by commas. Useful if you want notifications to go to just a few people and don't want to configure contact groups. You must specify at least one contact or contact group in each host definition.

contact_groups
This is a list of the short names of the contact groups that should be notified whenever there are problems (or recoveries) with this host. Multiple contact groups should be separated by commas. You must specify at least one contact or contact group in each host definition.

For more information please refer to the documentation:
http://nagios.sourceforge.net/docs/3_0/ ... .html#host

You might want to also read up on notifications:
http://nagios.sourceforge.net/docs/3_0/ ... tions.html