mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
235 stars 91 forks source link

check_drivesize: How to configure ok-syntax #751

Closed cedricmeschin closed 2 years ago

cedricmeschin commented 2 years ago

Issue and Steps to Reproduce

How to change default ok-syntax "OK All 1 drive(s) are ok" to something like this "OK: c:: 205GB/223GB used" (same as default Warning or critical output)

check_drivesize drive=C "perf-config=*(unit:B) used %(ignored:true)" "ok-syntax=${drive}: ${used}/${size} used" "perf-syntax="

Expected Behavior

L cli OK: : / used

Actual Behavior

L cli OK: C/: 130G/200G used

Details

cedricmeschin commented 2 years ago

Hi, --show-all is the solution.