Hi Icinga2 Community
A few weeks ago I have built my own Slack Notification script.
Now I would like to extend my script, since now various Slack Channels are to be addressed.
Now I would like to integrate a variable which is located on the notification (Slack WebHook URL) into the script.
Can someone help me that I can call the custom variable in the script or pass the value to the script?
Attached you find my Slack Script. My goal is to use the custom variable to dynamically define line 4 with the Slack WebHook URL.
host-by-slack.txt (2.7 KB)
I am looking forward to your help