check_drivesize issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

check_drivesize issue

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_drivesize issue

Post 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')"
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: check_drivesize issue

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_drivesize issue

Post by lmiltchev »

I am glad I could help! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked