注意放到 notepad 中打开

服务通知内容:

/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/local/bin/sendEmail.pl -f m@de.com -t $CONTACTEMAIL$ -s mail.de.com -o tls=no -u "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -xu m@de.com -xp 123456
主机通知内容:
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:$HOSTOUTPUT$" | /usr/local/bin/sendEmail.pl -f m@de.com -t $CONTACTEMAIL$ -s mail.de.com -o tls=no -u "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$HOSTADDRESS$ is $HOSTSTATE$ **" -xu m@de.com -xp 123456
注意放到 notepad 中打开