References > Aliases > Script Macros

Script Macros

The following 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

Note: When passing ${Application.Id} into script arguments, the test will fail because the macro will not be replaced. Edit the script with constant string values and replace them with macros when the script is ready.

${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