fuel-plugin-lma-infrastruct.../deployment_scripts/puppet/modules/nagios/templates/notify-by-smtp-noauth.cfg.erb

7 lines
591 B
Plaintext

define command{
command_name notify-service-by-email-with-long-service-output
command_line /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$\n$LONGSERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" -r '<%= @send_from %>' \
-S smtp="smtp://<%= @smtp_host %>" \
$CONTACTEMAIL$
}