From a1c56de93243d09201ab5fc7c2a42aa7b0fd4cab Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Mon, 13 Feb 2023 10:53:29 +0100 Subject: [PATCH] Apperently we were not using the slack_url from hiera eyaml, old hook was invalidated --- templates/monitor/notify_slack.erb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/monitor/notify_slack.erb.sh b/templates/monitor/notify_slack.erb.sh index c7b7d01..0e86d9a 100644 --- a/templates/monitor/notify_slack.erb.sh +++ b/templates/monitor/notify_slack.erb.sh @@ -15,7 +15,7 @@ #Modify these variables for your environment MY_NAEMON_HOSTNAME="monitor.drive.sunet.se" -SLACK_URL="https://hooks.slack.com/services/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" +SLACK_URL="<%= @slack_url %>" #Set the message icon based on Nagios service state if [ "$SERVICESTATE" = "CRITICAL" ]; then