Script execution action has broken variables

Script execution action has broken variables

I'm using App Man 8.0.

In some of my monitors i have the action to execute a program which i've written some scripts for. The problem is I need to pass the alert variables to my scripts which i do so by using the variables provided like $MONITORNAME, SEVERITY, $DATE, $RCAMESSAGE etc...

This all works fine unless there is a whitespace in any of those variables.
For example the $DATE variable gets replaced with something like

Thu Nov 08 10:34:13

This ends up getting to my script as 4 separate variables instead of one. Even if i put $DATE in double quotes it doesn't make a difference. It seems something is escaping the quotes.

I've tried setting up program to execute field in multiple ways and it makes no difference.

- test.sh "$MONITORNAME" "$SEVERITY" "$MONITORTYPE" "$HOSTNAME" "$DATE" "$RCAMESSAGE"

- test.sh $MONITORNAME $SEVERITY $MONITORTYPE $HOSTNAME $DATE $RCAMESSAGE

- test.sh '$MONITORNAME' '$SEVERITY' '$MONITORTYPE' '$HOSTNAME' '$DATE' '$RCAMESSAGE'

- perl test.pl "$MONITORNAME" "$SEVERITY" "$MONITORTYPE" "$HOSTNAME" "$DATE" "$RCAMESSAGE"

Any variable that contains a space gets screwed up. According to the *Note on the bottom of the Execute Action Configuration page it mentions to put the variables in double quotes to handle spaces in the variables. This does not seem to be working.

"Mention the above tags within double quotes to handle any spaces present inside tag value"






















                New to ADSelfService Plus?