Problem with check_disksize in windows server in Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
admincauce
Posts: 34
Joined: Wed Sep 19, 2018 3:20 am

Problem with check_disksize in windows server in Nagios

Post by admincauce »

In reference to the thread that has been closed

https://support.nagios.com/forum/viewto ... =7&t=55292

Hi again

I have been changing the check on my virtual machines with the disk check filter. Now on two or three machines I get the following warning:

/ usr / local / nagios / libexec / check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive = * "filter = name not like 'Volume'"
WARNING System Reserved: 290.094MB / 349.996MB used | '\\? \ Volume {7de049a7-d98e-11e6-80dd-806e6f6e6963} \ used' = 290.09375MB; 279.99687; 314.99648; 0; 349.99609 '\\? \ Volume {7de049a7 -d98e-11e6-80dd-806e6f6e6963} \ used% '= 83%; 80; 90; 0; 100' E: \ used '= 0.14962GB; 11.99765; 13.49736; 0; 14.99706' E: \ used% '= 1 %; 80; 90; 0; 100 'C: \ used' = 27.13649GB; 31.72499; 35.69062; 0; 39.65624 'C: \ used%' = 68%; 80; 90; 0; 100 'D: \ used' = 0B; 0; 0; 0; 0

I understand that the disk check on windows machines, also check the "System Reserved" partition. I would also like to filter by "System Reserved" but the filter does not work correctly for me. I have added the following to the filter:

"filter = name not like 'Volume' or name not like 'System'"

But it still gives me the warning, when I want to check only two discs, C and E that if they give me OK when I do them separately and without a filter.

Best regards.
Enviar comentarios
Historial
Guardadas
Comunidad
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Problem with check_disksize in windows server in Nagios

Post by mbellerue »

If you use this as the filter, does it still return all of the information you need, without the warning?

Code: Select all

filter=type in ('fixed')
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
admincauce
Posts: 34
Joined: Wed Sep 19, 2018 3:20 am

Re: Problem with check_disksize in windows server in Nagios

Post by admincauce »

Thanks for the reply @mbellereu

No. This filter not solve the warning in the "System Reserved".

[root@GESNAG00 ingenieria]$ /usr/local/nagios/libexec/check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive=* "filter=type in ('fixed')"
WARNING System Reserved: 290.094MB/349.996MB used|'\\?\Volume{7de049a7-d98e-11e6-80dd-806e6f6e6963}\ used'=290.09375MB;279.99687;314.99648;0;349.99609 '\\?\Volume{7de049a7-d98e-11e6-80dd-806e6f6e6963}\ used %'=83%;80;90;0;100 'E:\ used'=0.14964GB;11.99765;13.49736;0;14.99706 'E:\ used %'=1%;80;90;0;100 'C:\ used'=27.56015GB;31.72499;35.69062;0;39.65624 'C:\ used %'=69%;80;90;0;100


For separatelly, filter by each drive, all it's ok:

[root@GESNAG00 etc]$ /usr/local/nagios/libexec/check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive=C
OK All 1 drive(s) are ok|'C: used'=27.56021GB;31.72499;35.69062;0;39.65624 'C: used %'=69%;80;90;0;100

[root@GESNAG00 etc]$ /usr/local/nagios/libexec/check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive=E
OK All 1 drive(s) are ok|'E: used'=0.14964GB;11.99765;13.49736;0;14.99706 'E: used %'=1%;80;90;0;100

Thanks in advanced.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with check_disksize in windows server in Nagios

Post by scottwilkerson »

Lets try this

Code: Select all

/usr/local/nagios/libexec/check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive=* "filter=drive in ('C:\', 'E:\')"
this may work as well

Code: Select all

/usr/local/nagios/libexec/check_nrpe -n -H 10.200.2.5 -c check_drivesize -a drive=* exclude="System Reserved"
There is some discussion on the matter on the NSClient++ site
https://forums.nsclient.org/t/check-dri ... ect/4131/4
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
admincauce
Posts: 34
Joined: Wed Sep 19, 2018 3:20 am

Re: Problem with check_disksize in windows server in Nagios

Post by admincauce »

Thanks!!!

These command work fine!!!

Yeahhh!!! ;)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem with check_disksize in windows server in Nagios

Post by scottwilkerson »

admincauce wrote:Thanks!!!

These command work fine!!!

Yeahhh!!! ;)
Glad to hear it is sorted out

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked