From: Alex Dehnert Date: Sat, 5 Aug 2023 20:24:56 +0000 (+0000) Subject: Switch to instanced personals, not classed, for notifications X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=8bd5347cbbe063d4ccd733594561f18e1817d3e2;p=sysconfig%2Fnagios3.git Switch to instanced personals, not classed, for notifications Zulip doesn't support classed personals, and these days I mostly read on Zulip. --- 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$" }