#89 closed enhancement (fixed)
Output of checkDriveSize
|Reported by:||bart.boelaert@…||Owned by:||mickem|
I'm currently setting up a Nagios system to monitor both Linux and Windows machines.
In NSClient++, I've set-up the following check command rule :
check_disk=inject checkDriveSize ShowAll MinWarnFree?=$ARG2$ MinCritFree?=$ARG3$ Drive=$ARG1$
Then I ran this command from the Nagios system :
./check_nrpe -H myip -c check_disk -a "C:
" 20% 10%
I found that the output from the command is very confusing. When everything is ok, it shows :
OK: C:\: 18.5G|'C:\'=76%;20;10;
There is no indication what 18.5G means : used space or free space. Apparently it is the used space. The 76% that shows up in the performance data refers to the amount of free space.
My suggestion would be to add the label "used" after the used space and, for completeness, to show the absolute free disk space as well.
When a warning or critical threshold is met, the output clearly shows "used" and "free" labels.