Nagstamon icon indicating copy to clipboard operation
Nagstamon copied to clipboard

Variables in Notification Action not working

Open distahl opened this issue 5 years ago • 3 comments

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.

distahl avatar Apr 12 '19 11:04 distahl

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.

Massl123 avatar Apr 14 '19 09:04 Massl123

Thanks for the hint. For my purpose this is enough, but I guess there are people who would love to see more working options :-)

distahl avatar Apr 18 '19 06:04 distahl

echo $EVENT$ >> /tmp/test does not work for me. The file just shows $ for each line.

TechnologyClassroom avatar Jun 30 '22 19:06 TechnologyClassroom