Table of Contents
Check: Exec
To get this help: amcli --explain=Exec.
To add a section in your ini:
- Execute:
amcli --nocolor --explain=Exec >> example.ini. - edit the
example.iniin a text editor and update the needed values.
Syntax of an ini section
; -----------------------------------------------------------------------------
;
; Plugin Exec
; Execute a shell command.
;
[<Your check name>]
description="A short description what will be tested"
function="Exec"
; key 'command' {string} 🔸(required)
; Command line
; example: [command] [parameters] 2>&1
; default: (not provided)
params[command]=<Your value here>
; key 'output' {bool} 🔹(optional)
; flag: show output; default: true
; example: (not provided)
; default: 1
params[output]=<Your value here>
; key 'exitOk' {array} 🔹(optional)
; array of integers for ok exitcodes
; example: (not provided)
; default: (not provided)
params[exitOk]=<Your value here>
; key 'exitWarn' {array} 🔹(optional)
; array of integers for warning exitcodes
; example: (not provided)
; default: (not provided)
params[exitWarn]=<Your value here>
; key 'exitCritical' {array} 🔹(optional)
; array of integers for critical exitcodes
; example: (not provided)
; default: (not provided)
params[exitCritical]=<Your value here>