Trying to get "component monitor name" as one of arguments. Is it possible?
Tried both${N=SwisEntity;M=Application.ApplicationAlert.ApplicationName}, ${N=SwisEntity;M=ComponentAlert.ComponentName}with no success
Hi @omavel
I am guessing that maybe you can use the built in variables, like in the example that you have stated try passing the arguments as mentioned below if you want to pass monitor name as an argument onto the script
Script arguments :
443, ${ComponentName}
Script body:
$MonitorName=$args.get(1);
Give it a try and let me know if this works
Unfortunately, it's not working:
try ${Component.Name}
*Note* Use this variable ${Component.Name} directly in your Script body as this is Linux/Unix Script monitor, no need to pass it in Command Line.
Result is None
Due to the Case 00906573 this is impossible:
After further checking, sorry to say that these are the only variables that would work in the script.
Component Name is not available and would not work in your script:documentation.solarwinds.com/.../sam-templates-linuxunix-scripting.htm