Check drives size displays too much information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check drives size displays too much information

Post by lmiltchev »

You could exclude this drive from your check for the time being, until you figure out what is causing the issue. What kind of drive is it? We would need to do some more digging into this. If we could recreate the issue in-house, maybe we would be able to come up with a solution, or at least point you to the right direction.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi
You could exclude this drive from your check for the time being
=> Thanks, done

What kind of drive is it?
=>
Could you please tell me what kind of information do you need ?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check drives size displays too much information

Post by scottwilkerson »

Frédéric GRANAT wrote:What kind of drive is it?
=>
Could you please tell me what kind of information do you need ?
Is it a fixed drive, CDROM, network share, etc.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi,
It's a ntfs partition.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check drives size displays too much information

Post by scottwilkerson »

Frédéric GRANAT wrote:Hi,
It's a ntfs partition.
If you look at it's properties is the D: drive extremely large? Does it show properly the size in Windows?

For some reason Windows is returning a negative number when querying the size
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Nothing abnormal in the properties
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check drives size displays too much information

Post by scottwilkerson »

scottwilkerson wrote:If you look at it's properties is the D: drive extremely large?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

No,
Disk is not large
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check drives size displays too much information

Post by tgriep »

Try running the command against the D: drive to see that sort of errors are generated. The command below has the debug option so hopefully it will show something.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxxxxxx -u xxxxxxxxxxx -p xxxxxxxxxxxxx -m checkdrivesize -a 'D:' -w _FreeGB=10: -c _FreeGB=5:  --extrawmicarg "--debuglevel=4" -d 
Be sure to check out our Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi,
Here's the output :

Code: Select all

[[email protected] ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxx -u xxxxxxx -p xxxxxxx-m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5: --extrawmicarg "--debuglevel=4" -d
Complex Format:_UsedSpace,#B,Used,, ,,
Last edited by Frédéric GRANAT on Tue Jun 04, 2019 10:23 am, edited 2 times in total.
Locked