Page 1 of 1
Check_drivesize - Filter processing failed
Posted: Fri Nov 23, 2018 2:15 pm
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
Re: Check_drivesize - Filter processing failed
Posted: Mon Nov 26, 2018 12:47 pm
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
Re: Check_drivesize - Filter processing failed
Posted: Wed Nov 28, 2018 8:44 am
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
Re: Check_drivesize - Filter processing failed
Posted: Wed Nov 28, 2018 10:48 am
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.
Re: Check_drivesize - Filter processing failed
Posted: Mon Jan 07, 2019 10:10 am
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]
Re: Check_drivesize - Filter processing failed
Posted: Mon Jan 07, 2019 10:50 am
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!