Send personal zephyrs, now that there's more content
authorAlex Dehnert <alex@dehnerts.com>
Sat, 17 Apr 2021 07:46:00 +0000 (03:46 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Sat, 17 Apr 2021 07:46:00 +0000 (03:46 -0400)
conf.d/zephyr.cfg
local.d/contacts.cfg

index f90a8bde5d1efa804979cefd4c62e0a3d6fc9e3c..e204669437fc37787e346f7863e96f24b455afc1 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$"
+        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$"
         }
index a4e6fbfb93d1c3f17e3f7f3bdf6a38e2742e4d69..f15c7b5d45f83d56191fde09aec99ce9c76ecd8c 100644 (file)
@@ -20,5 +20,6 @@ define contact {
         service_notification_commands   notify-by-zephyr
         host_notification_commands      host-notify-by-zephyr
         email                           adehnert-auto
+        address1                        adehnert
 }