Unable to check windows volume space
Posted: Thu Mar 30, 2017 7:51 am
Hello,
I am trying to check the space left on a mounted volume in windows. If I run the following I can see all available volumes.
/usr/local/nagios/libexec/check_wmi_plus.pl -H server -u 'user' -p 'pass' -m checkvolsize -a .
But when I try to check one specific volume with
/usr/local/nagios/libexec/check_wmi_plus.pl -H server -u 'user' -p 'pass' -m checkvolsize -a 'E:\path\to\volume\'
Nagios does not return any results and when I run it from the CLI I get the error
Trailing \ in regex m/E:\path\to\volume\/ at /usr/local/nagios/libexec/check_wmi_plus.pl line 5405.
Am I doing something wrong with this?
I am trying to check the space left on a mounted volume in windows. If I run the following I can see all available volumes.
/usr/local/nagios/libexec/check_wmi_plus.pl -H server -u 'user' -p 'pass' -m checkvolsize -a .
But when I try to check one specific volume with
/usr/local/nagios/libexec/check_wmi_plus.pl -H server -u 'user' -p 'pass' -m checkvolsize -a 'E:\path\to\volume\'
Nagios does not return any results and when I run it from the CLI I get the error
Trailing \ in regex m/E:\path\to\volume\/ at /usr/local/nagios/libexec/check_wmi_plus.pl line 5405.
Am I doing something wrong with this?