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
check_wmi_plus -m checkdrivesize doesn't work
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_wmi_plus -m checkdrivesize doesn't work
It could be a bug. Can you try specifying just one drive?
Former Nagios Employee.
me.
me.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: check_wmi_plus -m checkdrivesize doesn't work
./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;
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;
Re: check_wmi_plus -m checkdrivesize doesn't work
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
Hi,
Thanks, that's the solution.
you can close the post.
Rgds,
Frederic
Thanks, that's the solution.
you can close the post.
Rgds,
Frederic
Re: check_wmi_plus -m checkdrivesize doesn't work
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.
I will now close this thread out, but feel free to open a new one if you ever need assistance.
Former Nagios Employee