Nagstamon
Nagstamon copied to clipboard
Variables in Notification Action not working
This is most likely related to #514 and #478. And maybe even to #308 If I try to use variables in the notification action, they get ignored / not resolved.
Example:
Action String: echo $HOST$ - $SERVICE$ - $STATUS-INFO$ >> TEST.txt
Result in TEST.txt: $HOST$ - $SERVICE$ - $STATUS-INFO$
Would be great if you could look into this.
As far as i know, only the $EVENT$ and $EVENTS$ variable is supported right now.
So you can use echo $EVENT$ >> TEST.txt
and parse the output in a script for now.
Thanks for the hint. For my purpose this is enough, but I guess there are people who would love to see more working options :-)
echo $EVENT$ >> /tmp/test
does not work for me. The file just shows $
for each line.