Submit a ticketCall us

Webinar: Web Help Desk for HR, Facilities and Accounting Departments
This webinar will focus on use cases for HR, Facilities and Accounting.

Having a unified ticketing and asset management system for all the departments in your company can provide end-users with a seamless experience and make things easier for your IT team. Yet, with different business tasks and objectives, many departments don’t fully understand the capabilities of Web Help Desk and how the software can be customized for effective use in their departments.
Register Now.

Home > Success Center > Server & Application Monitor (SAM) > Script monitor does not provide statistic value if the script exit code is 1

Script monitor does not provide statistic value if the script exit code is 1

Created by Chris Foley, last modified by MindTouch on Jun 23, 2016

Views: 306 Votes: 0 Revisions: 3

Overview

The following script monitors do not provide the statistic or message output value if the script exists using the exit code 1:

  • Windows Powershell Monitor
  • Windows Script Monitor
  • Linux/Unix Script Monitor

Environment

  • All SAM versions
  • All Windows versions

Cause 

An exit code of 1 inicates that the script has failed. As such, no parsing of output is performed to gather Statistic or Message values.

Resolution

To monitor a value and compare it against a threshold, set the statistic value as needed and exit with a value of 0. You can then adjust the thresholds within the Monitor to fail or not, depending on the value received.

 

Last modified
03:34, 23 Jun 2016

Tags

Classifications

Public