Check_drivesize: perfdata used and/or free?


#1

Hi @ll,

I’m a little bit confused:

Without any warn/crit defintion, I get “used” in perf data

./check_nrpe -H server -c check_drivesize -a drive=C: OK All 1 drive(s) are ok|‘C: used’=33.19636GB;39.60702;44.5579;0;49.50878 ‘C: used %’=67%;80;90;0;100

With at least one of them filtered for “free” I get “used” and “free” in perf data

./check_nrpe -H server -c check_drivesize -a drive=C: warn="free<10M" OK All 1 drive(s) are ok|‘C: free’=16.31242GB;0.00976;0;0;49.50878 ‘C: free %’=33%;0;0;0;100 ‘C: used’=33.19636GB;0;44.5579;0;49.50878 ‘C: used %’=67%;0;90;0;100

With both filtered for “free” I only get “free”

./check_nrpe -H server -c check_drivesize -a drive=C: warn=“free<10M” crit="free<5M" OK All 1 drive(s) are ok|‘C: free’=16.31222GB;0.00976;0.00488;0;49.50878 ‘C: free %’=33%;0;0;0;100

Is there a way I can specify whether I want “free” and/or “used” in perfdata?