check_wmi_plus -m checkdrivesize doesn't work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

check_wmi_plus -m checkdrivesize doesn't work

Post by Frédéric GRANAT »

Hi,
I run the following command : ./check_wmi_plus.pl -H xxxxxxx -u xxxxxxx -p xxxxxxx -m checkdrivesize -a "C|D|E|Q|H|I|L|M|N" -w 85 -c 92
and it returns the result :
OK - C: Total=48.73GB, Used=40.21GB (82.5%), Free=8.52GB (17.5%) OK - D: Total=1850.00GB, Used=1290.53GB (69.8%), Free=559.47GB (30.2%) OK - E: Total=30.00GB, Used=1.80GB (6.0%), Free=28.19GB (94.0%) CRITICAL - [Triggered by _Used%>92] - F: Total=300.00GB, Used=289.96GB (96.7%), Free=10.04GB (3.3%) WARNING - [Triggered by _Used%>85] - G: Total=350.00GB, Used=316.15GB (90.3%), Free=33.85GB (9.7%) OK - H: Total=150.00GB, Used=110.16GB (73.4%), Free=39.84GB (26.6%) |'C: Space'=40.21GB; 'C: Utilisation'=82.5%;85;92; 'D: Space'=1290.53GB; 'D: Utilisation'=69.8%;85;92; 'E: Space'=1.80GB; 'E: Utilisation'=6.0%;85;92; 'F: Space'=289.96GB; 'F: Utilisation'=96.7%;85;92; 'G: Space'=316.15GB; 'G: Utilisation'=90.3%;85;92; 'H: Space'=110.16GB; 'H: Utilisation'=73.4%;85;92;

I specified : -a "C|D|E|Q|H|I|L|M|N"
That means I want to monitor those disks and no other ones.
How do you explain that it also displays results for F:, G: ?

Rgds,

Frederic
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_wmi_plus -m checkdrivesize doesn't work

Post by hsmith »

It could be a bug. Can you try specifying just one drive?
Former Nagios Employee.
me.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: check_wmi_plus -m checkdrivesize doesn't work

Post by Frédéric GRANAT »

./check_wmi_plus.pl -H xxxxx -u xxxx -p xxxx -m checkdrivesize -a "C" -w 85 -c 92

Gives :

OK - C: Total=48.73GB, Used=40.21GB (82.5%), Free=8.52GB (17.5%) OK - E: Total=30.00GB, Used=1.77GB (5.9%), Free=28.22GB (94.1%) OK - H: Total=150.00GB, Used=110.14GB (73.4%), Free=39.86GB (26.6%) |'C: Space'=40.21GB; 'C: Utilisation'=82.5%;85;92; 'E: Space'=1.77GB; 'E: Utilisation'=5.9%;85;92; 'H: Space'=110.14GB; 'H: Utilisation'=73.4%;85;92;
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_wmi_plus -m checkdrivesize doesn't work

Post by rkennedy »

Can you try running the command with C: rather than just C like so and post the output?

Code: Select all

./check_wmi_plus.pl -H xxxxx -u xxxx -p xxxx -m checkdrivesize -a "C:" -w 85 -c 92
Former Nagios Employee
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: check_wmi_plus -m checkdrivesize doesn't work

Post by Frédéric GRANAT »

Hi,
Thanks, that's the solution.
you can close the post.

Rgds,

Frederic
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_wmi_plus -m checkdrivesize doesn't work

Post by rkennedy »

Glad to see this working!

I will now close this thread out, but feel free to open a new one if you ever need assistance.
Former Nagios Employee
Locked