Email Notifications-Nagios Core-4.0.1

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
vijaydonde
Posts: 6
Joined: Fri Sep 05, 2014 12:52 am

Email Notifications-Nagios Core-4.0.1

Post 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 abc@yahoo.com & if HOST B is having problem , Email notifications will go to xyz@yahoo.com

How can i configure hostwise email notifications ?

Regds,
Vijay
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Notifications-Nagios Core-4.0.1

Post 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.
Former Nagios employee
vijaydonde
Posts: 6
Joined: Fri Sep 05, 2014 12:52 am

Re: Email Notifications-Nagios Core-4.0.1

Post 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 xyz@yahoo.com,abc@yahoo.com , -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....
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Email Notifications-Nagios Core-4.0.1

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked