update notification hook and DO NOT EXPOSE CREDIENTIALS this time
This commit is contained in:
parent
91c9320e5a
commit
b7e0a98ff9
|
@ -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}",
|
||||
|
|
Loading…
Reference in New Issue