I am trying to troubleshoot alerts and variable subsitition into a CLI command. Is there a log maintained or other mechanism to see the actual output from the CLI command?
The netperfmon eventlog entry will have the same variables as the external application execution. I'd copy/paste the command line you're trying to run into that other alert action and then see what shows up in the event log to make sure the variables are interpolating right.
Brian, yes but only after the alert has fired! Once it has fired, it will be logged in the AlertLog table with variables populated.
Look in the AlertLog table for your triggered alert, then look in the message column.
The message will have all of the variables filled in because it is the actual command that executed.
Example command;
\APPS\Solarwinds\Orion\Postie\postie.exe -host:xxx-3gwpager -to:msgteam@corp.xxx.net -from:SolarWinds -s: -msg:"${Time} - The ${ComponentName} service on ${NodeName} is ${ComponentStatus}!"
Actual output in AlertLog Table is;
Success - \APPS\Solarwinds\Orion\Postie\postie.exe -host:xxx-3gwpager -to:msgteam@corp.xxx.net -from:SolarWinds -s: -msg:"1:11 AM - The BlackBerry Policy Service service on VM-2XXXPRD is Up!"
Notice how the variables are filled in with the actual value...