From 609ff161a1af2be58da61c493e1633d2988f2d76 Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Thu, 15 Nov 2012 17:53:02 -0500 Subject: [PATCH] nagios: send the full multi-line alert data in Nagios e-mails. (imported from commit c906bd2b6a2a1e0f009e4743a0f7b1968f371919) --- servers/puppet/files/nagios3/commands.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/puppet/files/nagios3/commands.cfg b/servers/puppet/files/nagios3/commands.cfg index 15f6703144..73435b9a18 100644 --- a/servers/puppet/files/nagios3/commands.cfg +++ b/servers/puppet/files/nagios3/commands.cfg @@ -17,7 +17,7 @@ define command{ # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email - 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" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ + 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$ **" $CONTACTEMAIL$ }