WMI_Plus Checkdrivesize List all drives EXCEPT C and D

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

WMI_Plus Checkdrivesize List all drives EXCEPT C and D

Post 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
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

Re: WMI_Plus Checkdrivesize List all drives EXCEPT C and D

Post by brianp89 »

After discussing with a coworker, he figured it out:

"^[^CD]:"
Locked