Page 1 of 1

Problem with check_disksize in windows server in Nagios

Posted: Thu Aug 29, 2019 3:19 am
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

Re: Problem with check_disksize in windows server in Nagios

Posted: Thu Aug 29, 2019 4:14 pm
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')

Re: Problem with check_disksize in windows server in Nagios

Posted: Fri Aug 30, 2019 3:20 am
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.

Re: Problem with check_disksize in windows server in Nagios

Posted: Fri Aug 30, 2019 7:38 am
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

Re: Problem with check_disksize in windows server in Nagios

Posted: Fri Aug 30, 2019 7:53 am
by admincauce
Thanks!!!

These command work fine!!!

Yeahhh!!! ;)

Re: Problem with check_disksize in windows server in Nagios

Posted: Fri Aug 30, 2019 7:54 am
by scottwilkerson
admincauce wrote:Thanks!!!

These command work fine!!!

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

Locking thread