Check: Diskfree

To get this help: amcli --explain=Diskfree.

To add a section in your ini:

  • Execute: amcli --nocolor --explain=Diskfree >> example.ini.
  • edit the example.ini in a text editor and update the needed values.

Syntax of an ini section


; -----------------------------------------------------------------------------
;
; Plugin Diskfree
; Check if a given filesystem / directory that it has enough space.
;
[<Your check name>]
description="A short description what will be tested"
function="Diskfree"


; key 'directory' {string} 🔸(required)
; directory to check
; example: (not provided)
; default: (not provided)
params[directory]=<Your value here>

; key 'warning' {string} 🔹(optional)
; size for warning level
; example: 1.25GB
; default: (not provided)
params[warning]=<Your value here>

; key 'critical' {string} 🔸(required)
; size for critical level
; example: 500.7MB
; default: (not provided)
params[critical]=<Your value here>