Guides‎ > ‎Common Checks‎ > ‎

Disk Usage

Disk Free Space - Specific Drive

Specific Amount

Check the Disk Free Space for C: drive. Warning alert at 10GB free space and critical alert at 5GB free space.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=10G MinCrit=5G Drive=C:

Output:
OK: C:: 11.5G|'C: %'=81%;83;91 'C:'=11.51G;10;5;0;59

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=10G MinCrit=5G Drive=C: perf-unit=G

Output:
OK: C:: 11.5G|'C: %'=81%;83;91 'C:'=11.51G;10;5;0;59

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a drive=C: 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C: 40.361GB free / 59.9GB total}|'C: free'=40.36125G;10;5;0;59.90038 'C: free %'=67%;16;8;0;100

Percentage

Check the Disk Free Space for C: drive. Warning alert at 20% free space and critical alert at 10% free space.

NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=20% MinCrit=10% Drive=C:

Output:
OK: C:: 11.5G|'C: %'=81%;20;10 'C:'=11.51G;11.9;5.9;0;59

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=20% MinCrit=10% Drive=C: perf-unit=G

Output:
OK: C:: 11.5G|'C: %'=81%;20;10 'C:'=11.51G;11.9;5.9;0;59

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a drive=C: 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C: 67% free / 59.9GB total}|'C: free'=40.36123G;11.98007;5.99003;0;59.90038 'C: free %'=67%;19;9;0;100


NOTE:
Multiple drives can be specified in the format Drive=C: Drive=J: Drive=Z:

Disk Free Space - ALL Drives

Specific Amount

Check the Disk Free Space for ALL drives. Warning alert at 10GB free space and critical alert at 5GB free space.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=10G MinCrit=5G CheckAll

Output:
OK: C:\: 11.5G, D:\: 90.3M|'C:\ %'=81%;83;91 'C:\'=11.51G;10;5;0;59 'D:\ %'=100%;49;74 'D:\'=90.34M;10240;5120;0;20476.99

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=10G MinCrit=5G CheckAll perf-unit=G 

Output:
OK: C:\: 11.5G, D:\: 90.4M|'C:\ %'=81%;83;91 'C:\'=11.51G;10;5;0;59 'D:\ %'=100%;49;74 'D:\'=0.08G;10;5;0;19.99

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
CRITICAL: critical({D:\ 0B free / 0B total}, {System Reserved 70.797MB free / 99.996MB total}), {C:\ 40.361GB free / 59.9GB total}, {E:\ 39.908GB free / 39.997GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36125G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'D:\ free'=0G;10;5;0;0 'E:\ free'=39.90819G;10;5;0;39.99706 'E:\ free %'=99%;25;12;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;10;5;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;10240;5120;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 40.361GB free / 59.9GB total}, {E:\ 39.908GB free / 39.997GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36124G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'E:\ free'=39.90819G;10;5;0;39.99706 'E:\ free %'=99%;25;12;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

Percentage

Check the Disk Free Space for ALL drives. Warning alert at 20% free space and critical alert at 10% free space.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page. Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=20% MinCrit=10% CheckAll

Output:
OK: C:\: 11.5G, D:\: 90.3M|'C:\ %'=81%;20;10 'C:\'=11.51G;11.9;5.9;0;59 'D:\ %'=100%;20;10 'D:\'=90.34M;4095.39;2047;0;20476.99

NSClient++ 0.4.1
No additional configuration is required
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MinWarn=20% MinCrit=10% CheckAll perf-unit=G

Output:
OK: C:\: 11.5G, D:\: 90.4M|'C:\ %'=81%;20;10 'C:\'=11.51G;11.9;5.9;0;59 'D:\ %'=100%;20;10 'D:\'=0.08G;3.99;2;0;19.99

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {D:\ 0% free / 0B total}, {E:\ 99% free / 39.997GB total}, {Q:\ 99% free / 24.997GB total}, {System Reserved 70% free / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'D:\ free'=0G;0;0;0;0 'E:\ free'=39.90819G;7.99941;3.9997;0;39.99706 'E:\ free %'=99%;19;9;0;100 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;0.01953;0.00976;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {E:\ 99% free / 39.997GB total}, {Q:\ 99% free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'E:\ free'=39.90819G;7.99941;3.9997;0;39.99706 'E:\ free %'=99%;19;9;0;100 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

Disk Free Space - Exclude Drive(s)

Specific Amount

Check the Disk Free Space for ALL drives EXCEPT the drive(s) we specify. Warning alert at 10GB free space and critical alert at 5GB free space.

Exclude E: Drive
NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=10G MinCrit=5G CheckAllOthers Drive=E:

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=79%;99;91 'C:\'=12881.03MB;1.95;1024;0;61338 'P:\ %'=100%;99;79 'P:\'=90.5MB;1.95;1024;0;25597

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=10G MinCrit=5G CheckAllOthers Drive=E: perf-unit=G

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=79%;100;91 'C:\'=12.579G;0;5;0;59.9 'P:\ %'=100%;100;79 'P:\'=0.08799G;0;5;0;24.997

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
CRITICAL: critical({D:\ 0B free / 0B total}, {System Reserved 70.797MB free / 99.996MB total}), {C:\ 40.361GB free / 59.9GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36124G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'D:\ free'=0G;10;5;0;0 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;10;5;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;10240;5120;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 40.361GB free / 59.9GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36124G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

Exclude E: Drive AND P: Drive
NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page. Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=10G MinCrit=5G CheckAllOthers Drive=E: Drive=P:

Output:
OK: C:\: 12.6G|'C:\ %'=79%;99;91 'C:\'=12881.03MB;3.15;1024;0;61338

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=10G MinCrit=5G CheckAllOthers Drive=E: Drive=P: perf-unit=G

Output:
OK: C:\: 12.6G|'C:\ %'=79%;100;91 'C:\'=12.579G;0;5;0;59.9

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' exclude='P:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
CRITICAL: critical({D:\ 0B free / 0B total}, {System Reserved 70.797MB free / 99.996MB total}), {C:\ 40.361GB free / 59.9GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36124G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'D:\ free'=0G;10;5;0;0 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;10;5;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;10240;5120;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' exclude='P:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free} free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 40.361GB free / 59.9GB total}, {Q:\ 24.909GB free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 17.909GB free / 17.997GB total}|'C:\ free'=40.36124G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

Percentage

Check the Disk Free Space for ALL drives EXCEPT the drive(s) we specify. Warning alert at 20% free space and critical alert at 10% free space.

Exclude E: Drive
NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=20% MinCrit=10% CheckAllOthers Drive=E:

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=80%;1865056;10 'C:\'=12.58GB;1117175.76;5.99;0;59.9 'P:\ %'=100%;1865056;10 'P:\'=90.5MB;477398311.47;2559.7;0;25597

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=20% MinCrit=10% CheckAllOthers Drive=E: perf-unit=G

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=80%;0;10 'C:\'=12.576G;0;5.99;0;59.9 'P:\ %'=100%;0;10 'P:\'=0.08799G;0;2.5;0;24.997

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {D:\ 0% free / 0B total}, {Q:\ 99% free / 24.997GB total}, {System Reserved 70% free / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'D:\ free'=0G;0;0;0;0 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;0.01953;0.00976;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' "filter=type in ('fixed')" exclude='System Reserved' 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {Q:\ 99% free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

Exclude E: Drive AND P: Drive
NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=20% MinCrit=10% CheckAllOthers Drive=E: Drive=P:

Output:
OK: C:\: 12.6G|'C:\ %'=80%;3301248;10 'C:\'=12.58GB;1977460.32;5.99;0;59.9

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MinWarn=20% MinCrit=10% CheckAllOthers Drive=E: perf-unit=G

Output:
OK: C:\: 12.6G|'C:\ %'=80%;0;10 'C:\'=12.576G;0;5.99;0;59.9

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' exclude='P:\' 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {D:\ 0% free / 0B total}, {Q:\ 99% free / 24.997GB total}, {System Reserved 70% free / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'D:\ free'=0G;0;0;0;0 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;0.01953;0.00976;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' exclude='P:\' "filter=type in ('fixed')" exclude='System Reserved' 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 67% free / 59.9GB total}, {Q:\ 99% free / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 99% free / 17.997GB total}|'C:\ free'=40.36123G;11.98007;5.99003;0;59.90038 'C:\ free %'=67%;19;9;0;100 'Q:\ free'=24.90865G;4.99941;2.4997;0;24.99706 'Q:\ free %'=99%;19;9;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;3.59941;1.7997;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;19;9;0;100

Disk Usage - Specific Drive

Specific Amount

Check the Disk Usage for C: drive. Warning alert at 50G usage and critical alert at 100G usage.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=50G MaxCrit=100G Drive=C:

Output:
OK: C:: 11.5G|'C: %'=19%;16;4294967230 'C:'=11.51G;50;100;0;59

NSClient++ 0.4.1
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=50G MaxCrit=100G Drive=C: perf-unit=G

Output:
OK: C:: 11.5G|'C: %'=19%;16;4294967230 'C:'=11.51G;50;100;0;59

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a drive=C: 'warning=used>50G' 'critical=used>100G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C: 19.539GB used / 59.9GB total}|'C: used'=19.53915G;50;100;0;59.90038 'C: used %'=32%;83;166;0;100

Percentage

Check the Disk Usage for C: drive. Warning alert at 80% usage and critical alert at 90% usage.

NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% Drive=C:

Output:
OK: C:: 11.5G|'C: %'=19%;80;90 'C:'=11.51G;47.9;53.9;0;59

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% Drive=C: perf-unit=G

Output:
OK: C:: 11.5G|'C: %'=19%;80;90 'C:'=11.51G;47.9;53.9;0;59

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a drive=C: 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C: 33% used / 59.9GB total}|'C: used'=19.53915G;47.9203;53.91034;0;59.90038 'C: used %'=32%;79;89;0;100


NOTE: Multiple drives can be specified in the format Drive=C: Drive=J: Drive=Z:

Disk Usage - ALL Drives

Specific Amount

Check the Disk Usage for ALL drives. Warning alert at 50G usage and critical alert at 100G usage.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=50G MaxCrit=100G CheckAll

Output:
OK: C:\: 11.5G, D:\: 90.3M|'C:\ %'=19%;16;4294967230 'C:\'=11.51G;50;100;0;59 'D:\ %'=0%;4294967146;4294966896 'D:\'=90.34M;51200;102400;0;20476.99

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=50G MaxCrit=100G CheckAll perf-unit=G

Output:
OK: C:\: 11.5G, D:\: 90.4M|'C:\ %'=19%;16;4294967230 'C:\'=11.51G;50;100;0;59 'D:\ %'=0%;4294967146;4294966896 'D:\'=0.08G;50;100;0;19.99

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a 'warning=used>50G' 'critical=used>100G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 19.539GB used / 59.9GB total}, {D:\ 0B used / 0B total}, {E:\ 91.004MB used / 39.997GB total}, {Q:\ 90.531MB used / 24.997GB total}, {System Reserved 29.199MB used / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ used'=19.53939G;50;100;0;59.90038 'C:\ used %'=32%;83;166;0;100 'D:\ used'=0G;50;100;0;0 'E:\ used'=0.08887G;50;100;0;39.99706 'E:\ used %'=0%;125;250;0;100 'Q:\ used'=0.0884G;50;100;0;24.99706 'Q:\ used %'=0%;200;400;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used'=0.02851G;50;100;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used %'=29%;51202;102404;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;50;100;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;277;555;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' 'warning=used>50G' 'critical=used>100G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 19.539GB used / 59.9GB total}, {E:\ 91.004MB used / 39.997GB total}, {Q:\ 90.531MB used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ used'=19.53939G;50;100;0;59.90038 'C:\ used %'=32%;83;166;0;100 'E:\ used'=0.08887G;50;100;0;39.99706 'E:\ used %'=0%;125;250;0;100 'Q:\ used'=0.0884G;50;100;0;24.99706 'Q:\ used %'=0%;200;400;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;50;100;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;277;555;0;100

Percentage

Check the Disk Usage for C: drive. Warning alert at 80% usage and critical alert at 90% usage.

NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% CheckAll

Output:
OK: C:\: 11.5G, D:\: 90.3M|'C:\ %'=19%;80;90 'C:\'=11.51G;47.9;53.9;0;59 'D:\ %'=0%;80;90 'D:\'=90.34M;16381.59;18429.29;0;20476.99

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% CheckAll perf-unit=G

Output:
OK: C:\: 11.5G, D:\: 90.4M|'C:\ %'=19%;80;90 'C:\'=11.51G;47.9;53.9;0;59 'D:\ %'=0%;80;90 'D:\'=0.08G;15.99;17.99;0;19.99

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {D:\ 100% used / 0B total}, {E:\ 1% used / 39.997GB total}, {Q:\ 1% used / 24.997GB total}, {System Reserved 30% used / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'D:\ used'=0G;0;0;0;0 'E:\ used'=0.08887G;31.99765;35.99736;0;39.99706 'E:\ used %'=0%;79;89;0;100 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used'=0.02851G;0.07812;0.08788;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used %'=29%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {E:\ 1% used / 39.997GB total}, {Q:\ 1% used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'E:\ used'=0.08887G;31.99765;35.99736;0;39.99706 'E:\ used %'=0%;79;89;0;100 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

Disk Usage - Exclude Drive(s)

Specific Amount

Check the Disk Usage for ALL drives EXCEPT the drive(s) we specify. Warning alert at 50G usage and critical alert at 100G usage.

Exclude E: Drive
NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=50G MaxCrit=100G CheckAllOthers Drive=E:

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=20%;99;4294967230 'C:\'=13503569920B;1;0;0;64317550592 'P:\ %'=0%;99;4294966996 'P:\'=94900224B;1;0;0;26840395776

NSClient++ 0.4.1
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=50G MaxCrit=100G CheckAllOthers Drive=E: perf-unit=G

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=20%;100;4294967230 'C:\'=12.576G;0;100;0;59.9 'P:\ %'=0%;100;4294966996 'P:\'=0.08799G;0;100;0;24.997

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
CRITICAL: critical({D:\ 0B used / 0B total}, {System Reserved 29.199MB used / 99.996MB total}), {C:\ 19.539GB used / 59.9GB total}, {Q:\ 90.531MB used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ free'=40.36098G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'D:\ free'=0G;10;5;0;0 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;10;5;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;10240;5120;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 19.539GB used / 59.9GB total}, {Q:\ 90.531MB used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ free'=40.36098G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100


Exclude E: Drive AND P: Drive
NSClient++ 0.3.9
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=50G MaxCrit=100G CheckAllOthers Drive=E: Drive=P:

Output:
OK: C:\: 12.6G|'C:\ %'=20%;99;4294967230 'C:\'=13503569920B;1;0;0;64317550592

NSClient++ 0.4.1
No additional configuration is required. NOTE: Refer to Known Issues at the bottom of this page.
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=50G MaxCrit=100G CheckAllOthers Drive=E: Drive=P: perf-unit=G

Output:
OK: C:\: 12.6G|'C:\ %'=20%;100;4294967230 'C:\'=12.576G;0;100;0;59.9

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' exclude='P:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
CRITICAL: critical({D:\ 0B used / 0B total}, {System Reserved 29.199MB used / 99.996MB total}), {C:\ 19.539GB used / 59.9GB total}, {Q:\ 90.531MB used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ free'=40.36098G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'D:\ free'=0G;10;5;0;0 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free'=0.06913G;10;5;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ free %'=70%;10240;5120;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' exclude='P:\' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 19.539GB used / 59.9GB total}, {Q:\ 90.531MB used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 90.313MB used / 17.997GB total}|'C:\ free'=40.36098G;10;5;0;59.90038 'C:\ free %'=67%;16;8;0;100 'Q:\ free'=24.90865G;10;5;0;24.99706 'Q:\ free %'=99%;40;20;0;100 'C:\Mounted Disks\A Mounted Disk\ free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ free %'=99%;55;27;0;100

Percentage

Check the Disk Usage for C: drive. Warning alert at 80% usage and critical alert at 90% usage.

Exclude E: Drive
NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=80% MaxCrit=90% CheckAllOthers Drive=E:

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=20%;1;90 'C:\'=12878.01MB;613.38;55204.2;0;61338 'P:\ %'=0%;1;90 'P:\'=90.5MB;255.97;23037.3;0;25597

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=80% MaxCrit=90% CheckAllOthers Drive=E: perf-unit=G

Output:
OK: C:\: 12.6G, P:\: 90.5M|'C:\ %'=20%;0;90 'C:\'=12.576G;0;53.91;0;59.9 'P:\ %'=0%;0;90 'P:\'=0.08799G;0;22.497;0;24.997

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {D:\ 100% used / 0B total}, {Q:\ 1% used / 24.997GB total}, {System Reserved 30% used / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'D:\ used'=0G;0;0;0;0 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used'=0.02851G;0.07812;0.08788;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used %'=29%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {Q:\ 1% used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

Exclude E: Drive AND P: Drive
NSClient++ 0.3.9
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=80% MaxCrit=90% CheckAllOthers Drive=E: Drive=P:

Output:
OK: C:\: 12.6G|'C:\ %'=20%;1;90 'C:\'=12878.01MB;613.38;55204.2;0;61338

NSClient++ 0.4.1
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckDriveSize ShowAll -a MaxWarn=80% MaxCrit=90% CheckAllOthers Drive=E: Drive=P: perf-unit=G

Output:
OK: C:\: 12.6G|'C:\ %'=20%;0;90 'C:\'=12.576G;0;53.91;0;59.9

NSClient++ 0.4.3.131 onwards
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a exclude='E:\' exclude='P:\' 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {D:\ 100% used / 0B total}, {Q:\ 1% used / 24.997GB total}, {System Reserved 30% used / 99.996MB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'D:\ used'=0G;0;0;0;0 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used'=0.02851G;0.07812;0.08788;0;0.09765 '\\?\Volume{791a0772-737e-11e4-98ac-806e6f6e6963}\ used %'=29%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

NOTE: as you can see, in 0.4.3.x "All drives" means things like the boot volume and optical drives. We get around this by using a filter and exclude options: "filter=type in ('fixed')" exclude='System Reserved'

Command:
check_nrpe -H 192.168.142.137 -t 30 -c check_drivesize -a "filter=type in ('fixed')" exclude='System Reserved' exclude='E:\' exclude='P:\' 'warning=used>80%' 'critical=used>90%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used_pct}% used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\ 33% used / 59.9GB total}, {Q:\ 1% used / 24.997GB total}, {C:\Mounted Disks\A Mounted Disk\ 1% used / 17.997GB total}|'C:\ used'=19.53939G;47.9203;53.91034;0;59.90038 'C:\ used %'=32%;79;89;0;100 'Q:\ used'=0.0884G;19.99765;22.49736;0;24.99706 'Q:\ used %'=0%;79;89;0;100 'C:\Mounted Disks\A Mounted Disk\ used'=0.08819G;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk\ used %'=0%;79;89;0;100

Other Disk Types

Mount points or mounted volumes are disks that have been mounted into a folder instead of being assigned a drive letter. This is common where you may have more drives than letters of the alphabet.

NSClient++ 0.4.2.x versions onwards support mounted disks. They will be checked by default or you can target them specifically:

NSClient++ 0.4.2.x
Command:
check_nrpe -H win2008r2-01 -c CheckDriveSize -a ShowAll MaxWarn=5G MaxCrit=10G Drive='C:\Mounted Disks\A Mounted Disk'

Output:
OK C:\Mounted Disks\A Mounted Disk: Total: 17.997GB - Used: 90.285MB (1%) - Free: 17.909GB (99%)|'C:\Mounted Disks\A Mounted Disk used'=0.08816GB;5;10;0;17.99706 'C:\Mounted Disks\A Mounted Disk used %'=0%;27;55;0;100

NSClient++ 0.4.3.131 onwards
Command:
check_nrpe -H win2008r2-01 -c check_drivesize -a drive='C:\Mounted Disks\A Mounted Disk' 'warning=free<10G' 'critical=free<5G' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${used} used / ${size} total}' top-syntax='${status}: ${problem_list}'

Output:
OK: {C:\Mounted Disks\A Mounted Disk 90.313MB used / 17.997GB total}|'C:\Mounted Disks\A Mounted Disk free'=17.90887G;10;5;0;17.99706 'C:\Mounted Disks\A Mounted Disk free %'=99%;55;27;0;100

Known Issues

Performance data string returns a percentage data source AND a unit data source. It has been observed that in NSClient++ 0.3.9 that:
  • The unit data source returns incorrect warning and critical values. Example:
    • It SHOULD be:
      • 'C:'=11.51G;50;40;0;59
    • But it returns:
      • 'C:'=11.51GB;2;1;0;59.9
  • The unit data source, when in a warning or critical state returns the warning or critical value in a different unit to what was used in the MinWarn and MinCrit values. Examples:
    • It SHOULD be:
      • 'C:'=11.51G;50;40;0;59
    • But it returns:
      • 'C:'=12361519104B;2147483648;0;0;64317550592