Page 1 of 1

WMI_Plus Checkdrivesize List all drives EXCEPT C and D

Posted: Fri Jun 13, 2014 10:15 am
by brianp89
Hello,

I have been playing around with this command for an hour or two:

check_wmi_plus.pl -H SERVER -u USER -p PASS -m checkdrivesize -a "." -w _Free%=10: -c _Free%=5:

This works fine and will list all drives. However, I would like to list all drives except for C and D. Is there a way to do this with a regex? I've done my fair share of searching, but the only results I find are for check_nrpe, not for check_wmi_plus.

I've tried several combinations including:

".[!CD]"
".\\!C\\!D"
".$!C$D"
".\\$!C\\$!D"
".[^CD]"
"[^CD]."

But nothing I've tried seems to work. Do you guys know how to do this?

Thank you

Re: WMI_Plus Checkdrivesize List all drives EXCEPT C and D

Posted: Fri Jun 13, 2014 11:43 am
by brianp89
After discussing with a coworker, he figured it out:

"^[^CD]:"