Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20490

Re: How can I monitor a file size change on a Linux Box

$
0
0

The issues is that your script output is not formatted properly in a way SAM's Linux/Unix Script Monitor can understand it. First all scripts must exit with an error level that denotes the status of the component monitor

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


 

Second. The script must return at least a single statistic and optional message via stdout in 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

Below is an example of what this should look like:

script output example.png


Viewing all articles
Browse latest Browse all 20490

Trending Articles



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