When configuring script component monitors in SAM, test scripts before you verify credentials and access. When the test ends, SAM registers each returned metric as a numbered output in the SolarWinds Platform 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 SolarWinds Platform 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.
- Select the script monitor.
- Click Set Test Node to select a node.
- Click Test.