Submit a ticketCall us

WebinarUpcoming Webinar: How Help Desk and Remote Support Pays for Itself

Learn how help desk software can simplify ticketing management, allow you to track hardware and software assets, and accelerate the speed of IT support and service delivery. Gain insights on how remote support tools allow your IT team to maximize their efficiency and ticket resolution by expediting desktop troubleshooting, ultimately helping keep end-users happy and productive.

Register here.

Home > Success Center > Server & Application Monitor (SAM) > 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