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.