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
Hi @stevie-sy
Thanks for your reply.
Which bash-function for custom vars do you mean? Maybe there are other way’s to solve my problem
I’m always open to new things.