Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@frankhe
Favorites0
Views
Projects0
But the installation note needs some modification, otherwise, the email subject/body will not be correct. Modified version: *)notify-host-by-email command_line /usr/bin/python /usr/lib64/nagios/plugins/send_gmail.py -a $CONTACTEMAIL$ -b "***** Nagios *****nnnnnnNotification Type: $NOTIFICATIONTYPE$nnnHost: $HOSTNAME$nnnState: $HOSTSTATE$nnnAddress: $HOSTADDRESS$nnnInfo: $HOSTOUTPUT$nnnDate/Time: $LONGDATETIME$" -s "** Nagios $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" *) notify-service-by-email command_line /usr/bin/python /usr/lib64/nagios/plugins/send_gmail.py -a $CONTACTEMAIL$ -b "***** Nagios *****nnnnnnNotification Type: $NOTIFICATIONTYPE$nnnService: $SERVICEDESC$nnnHost: $HOSTALIAS$nnnAddress: $HOSTADDRESS$nnnState: $SERVICESTATE$nnnDate/Time: $LONGDATETIME$nnnAdditional Info: $SERVICEOUTPUT$" -s "** Nagios $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
Reviewed 13 years ago