From e27faeedff9a1bc1335407906e6c65d246e7a11e Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Sat, 17 Apr 2021 03:46:00 -0400 Subject: [PATCH] Send personal zephyrs, now that there's more content --- conf.d/zephyr.cfg | 4 ++-- local.d/contacts.cfg | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf.d/zephyr.cfg b/conf.d/zephyr.cfg index f90a8bd..e204669 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$" + 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$" } # '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$" + 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$" } diff --git a/local.d/contacts.cfg b/local.d/contacts.cfg index a4e6fbf..f15c7b5 100644 --- a/local.d/contacts.cfg +++ b/local.d/contacts.cfg @@ -20,5 +20,6 @@ define contact { service_notification_commands notify-by-zephyr host_notification_commands host-notify-by-zephyr email adehnert-auto + address1 adehnert } -- 2.34.1