Result check_drivesize for specific letter in Nagios


#1

When I run check_nrpe on my server with check_drivesize, it displays all drives.

./check_nrpe -H 10.0.0.4 -c check_drivesize
OK All 3 drive(s) are ok|'C:\ used'=89.65561GB;220.66718;248.25058;0;275.83398 'C:\ used %'=32%;79;89;0;100 'D:\ used'=311.61065GB;446.19843;501.97323;0;557.74804 'D:\ used %'=55%;79;89;0;100 'E:\ used'=0B;0;0;0;0 

How can I returned just a specific letter (like C drive for example)?

Thanks


#2

add -a option with argument “drive=Letter:”

-a “drive=c:” for drive C


#3

Thx


#4

Ah, “-a drive=c:”! There are examples around without the “-a”, which then result in showing all the drives, despite “drive=c” being there.