When configuring script component monitors in SAM, test scripts before you verify credentials and access. When the test completes, SAM registers each returned metric as a numbered output in the Orion database. Until they're tested, scripts and component monitors return an initial Unknown status. After testing, polling returns accurate application status.
Verify you have the correct credentials with assigned account permissions to execute scripts on the Orion server and target servers. The script monitors may provide fields for credentials, or you may need to provide credentials in the script code, arguments, or command line.
To test a script monitor:
- Navigate to the page for the template or application monitor.
- Scroll down to the list of component monitors, as shown here:
- Select the script monitor.
- Click Set Test Node to select a node.
- Click Test.