Ad Widget

Collapse

Variable substitution from slack notify script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jony1001
    Junior Member
    • Jun 2019
    • 2

    #1

    Variable substitution from slack notify script

    I've create a simple shell script (based on this: https://aperogeek.fr/zabbix-send-alerts-to-slack/) to post to slack.

    I pass two parameters - the slack URL and the message text. Message text is _supposed_ to be substitutions from "[{HOST.HOST}] {TRIGGER.SEVERITY}: {TRIGGER.NAME}" but instead I'm getting that literal text in the slack message.

    Have tried both the 'test' button and triggering an alert. Clearly I've missed either a configuration step or some insight into the message text syntax.

    zabbix-server v:4.2

    caveat - Im very new to zabbix. Am looking to replace a medium sized nagios installation with something more up-to-date. Hence my explorations here.
Working...