Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
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$ **”