command - run an external command
Run a command, and optionally verify its output. If the command exits non-zero, this monitor fails.
- command
- Type:
string
- Required:
true
the command to run.
- result_regexp
- Type:
string (regular expression)
- Required:
false
- Default:
none
if supplied, the output of the command must match else the monitor fails.
- result_max
- Type:
integer
- Required:
false
if supplied, the output of the command is evaluated as an integer and if greater than this, the monitor fails. If the output cannot be converted to an integer, the monitor fails.
- show_output
- Type:
boolean
- Required:
false
if set to true, the output of the command will be captured as the message with a successful test or appended to the message on a failed test.