SAM script macros
See also Use script monitors in SAM
The following macros can be used with Windows, Linux/Unix, Nagios, and PowerShell script monitors:
Macro | Description |
---|---|
${IP} |
Current IP address |
${USER} |
Current User |
${PASSWORD} |
Current Password. (Supported only in Windows, Linux, and Nagios scripts) |
${CREDENTIAL} | Use in place of ${USER} and ${PASSWORD} when working with PowerShell Script Monitors |
${PORT} |
Current Port. (Supported only in Linux and Nagios scripts.) |
${Node.SysName} |
System name of the node |
${Node.Caption} |
User defined node name |
${Node.DNS} |
DNS of the node |
${Node.ID} |
ID of the node |
${Component.ID} |
ID of the component |
${Component.Name} |
Name of the component |
${Application.Id} |
ID of the Application |
${Application.Name} |
Name of the Application |
${Application.TemplateId} |
Template ID of the Application |
${Threshold.Warning.SAM} |
Threshold values for the Warning state |
${Threshold.Critical.SAM} |
Threshold values for the Critical state |
${Node.Custom.CustomPropertyName} | Node Custom Property Macros |
${Application.Custom.CustomPropertyName} | Application Custom Property Macros |