From b7e0a98ff9c9143c07842dba6a1735f9751d7672 Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov <5081863+zeridon@users.noreply.github.com> Date: Tue, 29 Oct 2019 05:50:19 +0200 Subject: [PATCH] update notification hook and DO NOT EXPOSE CREDIENTIALS this time --- monitoring/icinga2/scripts/slack-service-notification.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitoring/icinga2/scripts/slack-service-notification.sh b/monitoring/icinga2/scripts/slack-service-notification.sh index f2cd140..3cab529 100755 --- a/monitoring/icinga2/scripts/slack-service-notification.sh +++ b/monitoring/icinga2/scripts/slack-service-notification.sh @@ -1,15 +1,15 @@ #!/bin/bash ICINGA_HOSTNAME="vin.openfest.org/icingaweb2" -SLACK_WEBHOOK_URL="https://hooks.slack.com/services/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" -SLACK_CHANNEL="#video" +SLACK_WEBHOOK_URL="https://hooks.slack.com/services/some/other/tocken" +SLACK_CHANNEL="#noc" SLACK_BOTNAME="icinga2" if [ "$NOTIFICATIONTYPE" = "ACKNOWLEDGEMENT" ] || [ "$NOTIFICATIONTYPE" = "DOWNTIMESTART" ] || [ "$NOTIFICATIONTYPE" = "DOWNTIMEEND" ] then COLOR="#FFB6C1" - read -d '' PAYLOAD << EOF +read -d '' PAYLOAD << EOF { "channel": "${SLACK_CHANNEL}", "username": "${SLACK_BOTNAME}",