I seem to have some unusual behaviour with the variables in the alerts on Cloverleaf 19.1 running on RHEL.
When I create an e-mail alert, with the following message:
A: %A
F: %F
G: %G
N: %N
R: %R
V: %V
In the e-mail I receive, I can see the alert variables are translated:
A: Thread status of his_client has been down for 1335 minutes
F: /tmp/fileowuFQv
G:
N: his_Client_BH_Status_WARN
R: 266
V: {his_client down}
However, when I am trying to pass the %N and %V variables into a tcl script using the Alert Action “exec” i.e.:
tcl /cloverleaf/cis19.1/integrator/site_l2_erik/tclprocs/Cloverleaf_Alerts.tcl %N %V %A
they are not all being translated before they are being passed to the tcl script:
From the tcl script:
puts $logfile “This is argv: |$argv|”
outputs this to the logfile:
This is argv: |%N %V Thread status of his_client has been down for 1335 minutes|
As you can see %A is being translated to “Thread status of his_client has been down for 1335 minutes”
Any ideas why %N and %V are not being translated to “his_Client_BH_Status_WARN” and “{his_client down}” respectively when they are passed to the tcl script?
I have used a similar script successfully and all variables were translated, but that was on a Cloverleaf 6.1 version running on windows.
Thanks,
Erik