Page 1 of 1

Email Notifications-Nagios Core-4.0.1

Posted: Tue Mar 03, 2015 3:08 am
by vijaydonde
Friends,

I am using Nagios-4.0.1 Core for monitoring Network Infrastructure i.e. Routers & Switches as well as link monitoring.

Addition to this , i have configured Email Notifications for my internal team by using sendEmail-v1.56.tar.gz

Now i want to configure Hostwise email alerts i.e. If HOST A is having problem , Email Notifications will go to [email protected] & if HOST B is having problem , Email notifications will go to [email protected]

How can i configure hostwise email notifications ?

Regds,
Vijay

Re: Email Notifications-Nagios Core-4.0.1

Posted: Tue Mar 03, 2015 10:57 am
by tmcdonald
Have you set up contacts for those email addresses? You will need to do so and then set those contacts in the host configurations.

http://www.thegeekstuff.com/2009/06/4-s ... ification/

Make sure to edit the appropriate files depending on your distribution.

Re: Email Notifications-Nagios Core-4.0.1

Posted: Wed Mar 04, 2015 8:33 am
by vijaydonde
Thanks for the reply.

i have implemented configuration mentioned in below mail.

But am little bit confused as in have configured


define command{
command_name notify-host-by-email
command_line /usr/local/bin/sendEmail -s 192.168.0.127 -t [email protected],[email protected] , -xp $USER6$ -l /var/log/sendEmail -u "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" -m "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYP$

}

When i have tried to generate force alert only nagiosadmin is visible in GUI.

Please help....

Re: Email Notifications-Nagios Core-4.0.1

Posted: Wed Mar 04, 2015 11:55 am
by abrist
vijaydonde wrote:When i have tried to generate force alert only nagiosadmin is visible in GUI.
Could you clarify? Are you implying that you only see the notification sent for nagiosadmin? Or something else?