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}",