Submit a ticketCall us

AnnouncementsChange Is Inevitable

Get valuable help when it comes to tracking and monitoring changes. SolarWinds® Server Configuration Monitor (SCM) is designed to help you: detect, track, and receive alerts when changes occur, correlate system performance against configuration changes, compare server and application configuration against custom baselines, and verify application and system changes.

Learn more.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > General information on how to debug script monitors

General information on how to debug script monitors

Table of contents

Updated April 25th, 2016 

Overview

This article provides some tips on troubleshooting issues with SAM's script monitors.

Environment

  • All versions of SAM
  • All versions of Windows
  • All versions of Linux

Steps

Generally there are two ways to help you isolate an issue with running a script via a Script Monitor (Windows Script Monitor, Windows Powershell Monitor or Linux/Unix Script Monitor):

 

1. Use the Get Script Output feature.
    a. Go to Settings > SAM Settings > Manage Applications.
    b. Select the Application that contains your script and click Edit Properties.
    c. Open the Script Monitor.
    d. Next to Script body, click Override Template.
    e. Click Edit Script.
    f. Click Get Script Output.

 

This should provide the error being returned by the script or if the monitor is misconfigured.

2. Enable debug on the Application.
    a. On the settings page for the Application, open the Advanced section.
    b. Set the Debug logging to ON. 
    c. Click Save and Continue working.
    d. Select the component and click test.
    e. Open the Application Debug log file in the following directory:
C:\ProgramData\Solarwinds\Logs\APM\ApplicationLogs\AppId[##]\

Note: ## is the internal ID of the Application, as seen in the Browser's address bar when viewing the Application's settings.
This log should provide information on the script run and the response received

 

 

 

Last modified

Tags

Classifications

Public