Quantcast
Viewing all articles
Browse latest Browse all 20518

Re: Alerting on 4740 Event IDs (lockouts) for subset of users

It's likely that the PowerShell script output is not formatted correctly for SAM. You may want to ask for assistance modifying your scripts output in the Script Lab

Scripts Must Report Status Through Exit Codes

Scripts must report their status by exiting with the appropriate exit code:

Exit Code

Meaning

0

Up

1

Down

2

Warning

3

Critical

Any other value

Unknown

 

 

For example, if you want to inform SolarWinds SAM that a VBScript reports Up status, you would exit the script using code similar to the following, where 0 reports Up:

Wscript.quit(0)

Scripts with Text Output

Scripts report additional details by sending text to the script’s standard output.

In APM 4.0.2 and earlier, each line of output contained a single detail in the following format:

DetailType:Value

# Script output comment

Message: The directory contains too many files.

Statistic: 5

While this is still true, SAM now supports multiple values returned by a script using the following format.

Statistic.Name1: x
Message.Name1: abc

Statistic.Name2: y
Message.Name2: abc

Detail Type

Required

Meaning

Statistic

Yes

A numeric value used to determine how the monitor compares to its set thresholds. This must be an integer value, (negative numbers are supported).

Statistic.Name1: 123

Statistic.Name2: 456

Message

No

An error or information message to be displayed in the monitor status details. Note: Multi-line messages are supported. To use this functionality print each line using a separate command. For example:
Message.Name1: abc

Message.Name2: def

There is a limit of ten Statistic and Message pairs for the script. These can be placed anywhere in the script output. The Statistic and Message names you give must contain valid letters and/or numbers.

Sample output:

# Script comment: This shows two pairs. Ten pairs are possible.

Statistic.CPU: 31.08

Message.CPU: svchost.exe cpu usage

Statistic.RAM: 1234.56

Message.RAM: svchost.exe ram usage


Viewing all articles
Browse latest Browse all 20518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>