Re: Duplicate alert emails.
Posted: Wed Nov 27, 2013 1:44 pm
** PROBLEM Host Alert: http://www.xyz.com is DOWN **
***** Nagios *****
Notification Type: PROBLEM
Host: http://www.xyz.com
State: DOWN
Address: 100.00.00.000
Info:
Date/Time: Fri Nov 22 11:15:40 EST 2013
** PROBLEM Host Alert: http://www.xyz.com is DOWN **
***** Nagios *****
Notification Type: PROBLEM
Host: http://www.xyz.com
State: DOWN
Address: 100.00.00.00
Info:
Date/Time: Fri Nov 22 11:15:34 EST 2013
Here is the command used
***** Nagios *****
Notification Type: PROBLEM
Host: http://www.xyz.com
State: DOWN
Address: 100.00.00.000
Info:
Date/Time: Fri Nov 22 11:15:40 EST 2013
** PROBLEM Host Alert: http://www.xyz.com is DOWN **
***** Nagios *****
Notification Type: PROBLEM
Host: http://www.xyz.com
State: DOWN
Address: 100.00.00.00
Info:
Date/Time: Fri Nov 22 11:15:34 EST 2013
Here is the command used
Code: Select all
define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $LONGHOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}