Page 1 of 1

check_drivesize issue

Posted: Tue Apr 30, 2019 5:37 am
by rajasegar
Hi,

I am trying to migrate from NSClient++ 0.4.1 to 0.5.3.29
I am using check_nrpe v3.2.1.
The issue is with the new check_drivesize.
It is driving me nuts with picking up \\?\Volume and causing unnecessary false alerts

Below is working fine without the peskly Volume but it is picking up the CDROM and causing false alerts.
check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" "drive=*"
CRITICAL E:\: 0B/0B used|'D:\ used'=77.50521GB;119.99824;139.99794;0;199.99706 'D:\ used %'=39%;60;70;0;100 'C:\ used'=24.09255GB;59.79374;69.75937;0;99.65624 'C:\ used %'=24%;60;70;0;100 'E:\ used'=0B;0;0;0;0
Fine lets filter the CDROM. Now cdrom is gone but the \\Volume is back
check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" drive=* "filter=type not in ('CDROM')"
CRITICAL System Reserved: 263.68MB/349.996MB used|'\\?\Volume{25a7167b-265c-11e6-80b5-806e6f6e6963}\ used'=263.67968MB;209.99765;244.99726;0;349.99609 '\\?\Volume{25a7167b-265c-11e6-80b5-806e6f6e6963}\ used %'=75%;60;70;0;100 'D:\ used'=77.50521GB;119.99824;139.99794;0;199.99706 'D:\ used %'=39%;60;70;0;100 'C:\ used'=24.09255GB;59.79374;69.75937;0;99.65624 'C:\ used %'=24%;60;70;0;100

Take out drive=*, still the same
check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" "filter=type not in ('CDROM')"
CRITICAL System Reserved: 263.68MB/349.996MB used|'\\?\Volume{25a7167b-265c-11e6-80b5-806e6f6e6963}\ used'=263.67968MB;209.99765;244.99726;0;349.99609 '\\?\Volume{25a7167b-265c-11e6-80b5-806e6f6e6963}\ used %'=75%;60;70;0;100 'D:\ used'=77.50521GB;119.99824;139.99794;0;199.99706 'D:\ used %'=39%;60;70;0;100 'C:\ used'=24.09255GB;59.79374;69.75937;0;99.65624 'C:\ used %'=24%;60;70;0;100
Can someone please advice how to get rid of the \\Volume. NSClient++ online docs does not help. Google also same.
I just want the locally mounted drives. Tried everything but nothing seems to work.

Thanks in advance

Re: check_drivesize issue

Posted: Tue Apr 30, 2019 1:46 pm
by lmiltchev
Does the following command work for you?

Code: Select all

./check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" drive=* "filter=drive_or_id not like 'Volume' and type not in ('CDROM')"

Re: check_drivesize issue

Posted: Wed May 01, 2019 7:44 pm
by rajasegar
lmiltchev wrote:Does the following command work for you?

Code: Select all

./check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" drive=* "filter=drive_or_id not like 'Volume' and type not in ('CDROM')"
Perfect. Thanks a lot for your help.
./check_nrpe -u -H 10.110.4.24 -t 60 -c check_drivesize -a "warn=used>=60%" "crit=used>=70%" drive=* "filter=drive_or_id not like 'Volume' and type not in ('CDROM')"
OK All 2 drive(s) are ok|'D:\ used'=73.10664GB;119.99824;139.99794;0;199.99706 'D:\ used %'=37%;60;70;0;100 'C:\ used'=24.09047GB;59.79374;69.75937;0;99.65624 'C:\ used %'=24%;60;70;0;100
You can lock the thread.

Re: check_drivesize issue

Posted: Thu May 02, 2019 8:47 am
by lmiltchev
I am glad I could help! :)