E-mails notification of a specific host to specific user

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
sidserra
Posts: 28
Joined: Thu Jul 24, 2014 6:56 am

E-mails notification of a specific host to specific user

Post 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? :)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked