From 8bd5347cbbe063d4ccd733594561f18e1817d3e2 Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sat, 5 Aug 2023 20:24:56 +0000 Subject: [PATCH] Switch to instanced personals, not classed, for notifications Zulip doesn't support classed personals, and these days I mostly read on Zulip. --- conf.d/zephyr.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/zephyr.cfg b/conf.d/zephyr.cfg index e204669..21db066 100644 --- a/conf.d/zephyr.cfg +++ b/conf.d/zephyr.cfg @@ -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$" } -- 2.34.1