Switch to instanced personals, not classed, for notifications
authorAlex Dehnert <alex@dehnerts.com>
Sat, 5 Aug 2023 20:24:56 +0000 (20:24 +0000)
committerAlex Dehnert <alex@dehnerts.com>
Sat, 5 Aug 2023 20:24:56 +0000 (20:24 +0000)
Zulip doesn't support classed personals, and these days I mostly read on Zulip.

conf.d/zephyr.cfg

index e204669437fc37787e346f7863e96f24b455afc1..21db066a98bf6c31dddb26d08154f967a2ce69bc 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$\n$LONGHOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$" "$CONTACTADDRESS1$"
+        command_line    /usr/bin/printf "%b" "Host $HOSTSTATE$ $NOTIFICATIONTYPE$ alert for $HOSTNAME$!\n$HOSTOUTPUT$\n$LONGHOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -i "nagios.$HOSTALIAS$" "$CONTACTADDRESS1$"
         }
 
 # '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$\n$LONGSERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$.$SERVICEDESC$" "$CONTACTADDRESS1$"
+        command_line    /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGSERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -i "nagios.$HOSTALIAS$.$SERVICEDESC$" "$CONTACTADDRESS1$"
         }