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
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
[email protected]
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