Page 3 of 4

Re: Check drives size displays too much information

Posted: Tue Jun 04, 2019 9:00 am
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

Re: Check drives size displays too much information

Posted: Tue Jun 04, 2019 10:16 am
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)

Re: Check drives size displays too much information

Posted: Tue Jun 04, 2019 12:50 pm
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.

Re: Check drives size displays too much information

Posted: Thu Jun 06, 2019 7:40 am
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,, ,,

Re: Check drives size displays too much information

Posted: Thu Jun 06, 2019 12:06 pm
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

Re: Check drives size displays too much information

Posted: Tue Jun 11, 2019 9:31 am
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.

Re: Check drives size displays too much information

Posted: Tue Jun 11, 2019 2:28 pm
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?

Re: Check drives size displays too much information

Posted: Fri Jun 14, 2019 2:20 am
by Frédéric GRANAT
Here are the properties of the D: drive

Re: Check drives size displays too much information

Posted: Fri Jun 14, 2019 8:55 am
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.

Re: Check drives size displays too much information

Posted: Tue Jun 18, 2019 9:32 am
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