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
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check drives size displays too much information

Post by tgriep »

Please run this exact command and post the full output to the ticket.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H zzzzzzz -u xxxxxx -p yyyyy -m checkdrivesize -a 'D:' -w _FreeGB=10: -c _FreeGB=5:  "--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 »

It returns the same output :

Code: Select all

[[email protected] ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxx -u xxxxxxx -p xxxxxx -m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5: "--debuglevel=4" -d
Complex Format:_UsedSpace,#B,Used,, ,,
Please remove sensible data from your previous post (sorry I forgot to remove it)
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 »

You are not running the command like I asked, I only want you to run the check against the D: Drive only, not all of the drives on the system.
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 it is :

Code: Select all

[[email protected] ~]# /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxx -u xxxxxx -p xxxxxxx -m checkdrivesize -a 'D:' -w _FreeGB=10: -c _FreeGB=5: "--debuglevel=4" -d
Complex Format:_UsedSpace,#B,Used,, ,,
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 »

Can you login to that windows server and get the properties of the D Drive and screen capture it and post it to the ticket so we can see it's details?

Run this as root on the Nagios server and post the output here.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl --version
Get all of the following files from the Nagios server and post them to the ticket.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.conf
/usr/local/nagios/libexec/check_wmi_plus.pl
/usr/local/nagios/libexec/check_wmi_plus.ini
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 »

Code: Select all

[root@nagiosxi ~]# /usr/local/nagios/libexec/check_wmi_plus.pl --version
Version: 1.64
I attached the files.
You do not have the required permissions to view the files attached to this post.
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 »

Thanks for the files. Just checking them to see is there were any changes to them that could effect the plugin.

Can you login to that windows server and get the properties of the D Drive, screen capture it and post it to the ticket so we can see it's details?
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 »

Here are the properties of the D: drive
You do not have the required permissions to view the files attached to this post.
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 »

Nothing looks out of the ordinary so let's try running the plugin without any thresholds set to see if it works.

Run this command.

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxx -u xxxxxx -p xxxxxxx -m checkdrivesize -a 'D:'
Another thing to look at is the permissions set on the drive.
If the user account you are using does not have access to the drive, it may cause that error.
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 »

It's not a permission problem since the check on drive C: works well and I checked the permissions and it's correct
Last edited by Frédéric GRANAT on Thu Jun 20, 2019 5:00 am, edited 1 time in total.
Locked