Code: Select all
[1388177492] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;artsci;http;3;michael;Testing notification
[1388177492] SERVICE NOTIFICATION: ops;artsci;http;CUSTOM (OK);notify-service-by-email;HTTP OK: HTTP/1.0 200 OK - 31151 bytes in 0.030 second response time;michael;Testing notification
Code: Select all
define command{
command_name notify-host-by-email
command_line /usr/sbin/nagmail --atype host --caddr $CONTACTEMAIL$ --ntype $NOTIFICATIONTYPE$ --hname $HOSTNAME$ --hstate $HOSTSTATE$ --haddr $HOSTADDRESS$ --hout $HOSTOUTPUT$ --ldtime $LONGDATETIME$
}
define command{
command_name notify-service-by-email
command_line /usr/sbin/nagmail --atype service --caddr $CONTACTEMAIL$ --ntype $NOTIFICATIONTYPE$ --sdesc $SERVICEDESC$ --halias $HOSTALIAS$ --sstate $SERVICESTATE$ --haddr $HOSTADDRESS$ --ldtime $LONGDATETIME$ --sout $SERVICEOUTPUT$
}
Any ideas? I'm running under CentOS 6.5, using Nagios 3.5.1 from the EPEL yum repository.