Documentation forServer & Application Monitor
Monitoring your applications and environment is a key capability of Hybrid Cloud Observability and is also available in a standalone module, Server & Application Monitor (SAM). Hybrid Cloud Observability and SAM are built on the self-hosted SolarWinds Platform.

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

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

${Node.Custom.CustomPropertyName} Node Custom Property Macros
${Application.Custom.CustomPropertyName} Application Custom Property Macros