Send long output by zephyrs
authorAlex Dehnert <alex@dehnerts.com>
Sat, 17 Apr 2021 04:57:49 +0000 (00:57 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sat, 17 Apr 2021 04:57:49 +0000 (00:57 -0400)
conf.d/zephyr.cfg

index 1c2c75b04e726cc70af274d16c588dc1f12c3201..f90a8bde5d1efa804979cefd4c62e0a3d6fc9e3c 100644 (file)
@@ -1,11 +1,11 @@
 # 'host-notify-by-zephyr' command definition
 define command{
         command_name    host-notify-by-zephyr
-        command_line    /usr/bin/printf "%b" "Host $HOSTSTATE$ $NOTIFICATIONTYPE$ alert for $HOSTNAME$!\n$HOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$"
+        command_line    /usr/bin/printf "%b" "Host $HOSTSTATE$ $NOTIFICATIONTYPE$ alert for $HOSTNAME$!\n$HOSTOUTPUT$\n$LONGHOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$"
         }
 
 # 'notify-by-zephyr' command definition
 define command{
         command_name    notify-by-zephyr
-        command_line    /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$.$SERVICEDESC$"
+        command_line    /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGSERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$.$SERVICEDESC$"
         }