Implemented

Add Application Name variable to Windows Powershell script component

I am deploying Windows Powershell script components to monitor Windows Scheduled Tasks.  I am currently using the Script Argument field to provide the name of the scheduled task,

but it would be great if I could simply substitute the name of the application (the same name as the task in my case), e.g. an ${ApplicationName} variable.

Parents
  • This should also be extended to all standard variables that are available in Orion, e.g. ${CaptionId}.

  • The following additional macros are now available in the SAM 6.0 RC (available now)

    • ${USER}
    • ${PASSWORD}
    • ${PORT}
    • ${Node.SysName}
    • ${Node.Caption}
    • ${Node.DNS}
    • ${Node.ID}
    • ${Component.ID}
    • ${Component.Name}
    • ${Application.Id}
    • ${Application.Name}
    • ${Application.TemplateId
    • ${Threshold.Warning}
    • ${Threshold.Critical}
    • Node Custom Property Macros ${Node.CustomPropertyName}
    • Application Custom Property Macros ${Application.CustomPropertyName}
  • Although from aLTeReGo's list above, I think I already know the answer to my question, I will ask anyway in case I am wrong.

    Having the ability to use the threshold values in a script by referencing the associated variables is great.  However if you don't know the equation term (ie: greater than, equal to, etc.) then you cannot evaluate, within the script, what the Event status will be when the script results get back to Orion.  While that is the better argument for needing it available, my need is actually so that I can display a representation for the term (ie: >, =, etc.) along with the set threshold values in my response (ex: "(>80/90)" for Warning at greater than 80 and Critical at greater than 90).  This makes is easier for our Engineers who don't have edit access to the Application Monitors to see what the currents settings are/were at the time of the Event trigger whether they are viewing in the webpages or in the Alert email sent out.

    So is there a variable that says what equation term is being used for each Script Output?

  • Unfortunately there is not at this time.

Comment Children
No Data