Check_drivesize - Filter processing failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Check_drivesize - Filter processing failed

Post by RyanMule »

Hello All,

I am having an odd intermittent issue with my check_drivesize command. I am using NSclient++ version 5.2.

Randomly my checks will come back unknown and get the following error:

Filter processing failed: Failed to get size for \\?\Volume{4faf2c15-d531-11de-9881-806e6f6e6963}\: 57: The parameter is incorrect.

This is the command I am using:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_drivesize -a drive=* exclude=M:\\ 'warning=used>92%' 'critical=used>95%'

How do I exclude these volumes? This is a Windows 2012 server VM in VMware. I've read some people say its ghost floppy drives...

Thank you
Ryan
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_drivesize - Filter processing failed

Post by lmiltchev »

You are showing "Filter processing failed" error, but there is no filter in your command. Is this the actual command that you are running?
This is the command I am using:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_drivesize -a drive=* exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
According to Michael Medin, you could combine filters with and/or, etc. For example, if you are running a command like this one:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_drivesize -a drive=* "filter=type in ('fixed', 'remote')" exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
but you are having issues, you could try using the command below instead:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_drivesize -a drive=* "filter=type in ('fixed', 'remote') and mounted = 1" exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
https://github.com/mickem/nscp/issues/404
Be sure to check out our Knowledgebase for helpful articles and solutions!
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Re: Check_drivesize - Filter processing failed

Post by RyanMule »

Hello lmiltchev,

Thank you for your input! I will try the following and provide an update. The link provided is the same exact thing I am experiencing.
lmiltchev wrote:You are showing "Filter processing failed" error, but there is no filter in your command. Is this the actual command that you are running?
This is the command I am using:
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_drivesize -a drive=* exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
According to Michael Medin, you could combine filters with and/or, etc. For example, if you are running a command like this one:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_drivesize -a drive=* "filter=type in ('fixed', 'remote')" exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
but you are having issues, you could try using the command below instead:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_drivesize -a drive=* "filter=type in ('fixed', 'remote') and mounted = 1" exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
https://github.com/mickem/nscp/issues/404
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_drivesize - Filter processing failed

Post by lmiltchev »

Thank you for your input! I will try the following and provide an update. The link provided is the same exact thing I am experiencing.
Sure, keep us posted.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RyanMule
Posts: 57
Joined: Tue Dec 12, 2017 3:14 pm

Re: Check_drivesize - Filter processing failed

Post by RyanMule »

Hello lmiltchev,

This did the trick! Thank you for your help.
lmiltchev wrote: but you are having issues, you could try using the command below instead:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_drivesize -a drive=* "filter=type in ('fixed', 'remote') and mounted = 1" exclude=M:\\ 'warning=used>92%' 'critical=used>95%'
https://github.com/mickem/nscp/issues/404
[/quote]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_drivesize - Filter processing failed

Post by lmiltchev »

I am glad I could help! I will be closing this topic now. If you have any further questions, please start a new thread. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked