Host notifications not working
Sunny Jaisinghani
Sunny_Jaisinghani at symantec.com
Mon Apr 4 08:36:08 CEST 2011
Hello,
Could somebody help me with this.
Thanks
Sunny Jaisinghani
From: Sunny Jaisinghani [mailto:Sunny_Jaisinghani at symantec.com]
Sent: 31 March 2011 17:35
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Host notifications not working
Hello Nagios Users,
I recently upgraded from Nagios 1.4 to 3.2.3 on RHEL 5. I had to make
several changes to my config files to make it work.
Everything works, except host notifications. Nagios detects any DOWN
hosts but doesn't send out notifications.
Here are the commands i use for service and host notifications.
please note : service notifications work perfectly fine.
The script not.pl is being used since years without any problem. Since
the same script is used for service notifications i don't feel the
script is broken.
Also, when i manually run this script(with the required ARGs) it sends
out an email notification.
Also, when i submit a passive check through the console for a host DOWN;
i get an email notification.
define command{
command_name not-service
command_line /usr/lib/nagios/not.pl -S -i
'$CONTACTALIAS$||$CONTACTEMAIL$||$HOSTNAME$||$HOSTADDRESS$||$HOSTSTATE$|
|$SERVICEDESC$||$SERVICE
STATE$||$NOTIFICATIONTYPE$||$SERVICENOTIFICATIONNUMBER$||$SHORTDATETIME$
||$SERVICEOUTPUT$'
}
define command{
command_name not-host
command_line /usr/lib/nagios/not.pl -H -i
'$CONTACTALIAS$||$CONTACTEMAIL$||$HOSTNAME$||$HOSTADDRESS$||$HOSTSTATE$|
|$NOTIFICATIONTYPE$||$HO
STNOTIFICATIONNUMBER$||$SHORTDATETIME$||$HOSTOUTPUT$'
}
nagios.log:
[1301568796] HOST NOTIFICATION: noc;ss01;DOWN;not -host;PING CRITICAL -
Packet loss = 100%
[1301568806] HOST NOTIFICATION: noc;ss02;DOWN;not -host;PING CRITICAL -
Packet loss = 100%
[1301568826] HOST NOTIFICATION: noc;ss03;DOWN;not-host;PING CRITICAL -
Packet loss = 100%
[1301569426] HOST NOTIFICATION: noc;ts01;DOWN;not-host;PING CRITICAL -
Packet loss = 100%
[1301569696] HOST NOTIFICATION: noc;ss01;DOWN;not-host;PING CRITICAL -
Packet loss = 100%
Am i missing anything that nagios 3 is not happy about.
Thanks
Sunny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20110404/40246e42/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list