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.