speartail / checkwmiplus

Check WMI Plus is a client-less Nagios plugin for checking Windows systems
3 stars 5 forks source link

Problems with "c:\" for checkvolume #1

Closed yoshi314 closed 5 years ago

yoshi314 commented 5 years ago
/usr/local/lib/nagios/plugins/check_wmi_plus.pl --timeout 60 -H 10.117.73.111  -c _FreeGB=1: -m checkvolsize -p password -u nagioswmi -w _FreeGB=1: 

UNKNOWN - Could not find a volume matching ''. Available Volumes are C:\, \\?\Volume{cab8286b-dfcb-4084-ba88-6cdd57661ead}\, C:\ClusterStorage\V7000_DC\, C:\ClusterStorage\Unity_Cloud\, C:\ClusterStorage\V3700_Cloud\

So i try C:\ :

/usr/local/lib/nagios/plugins/check_wmi_plus.pl --timeout 60 -H 10.117.73.111  -c _FreeGB=1: -m checkvolsize -p password -u nagioswmi -w _FreeGB=1:  -a C:
OK - C:\ClusterStorage\V7000_DC\ Total=299.813GB, Used=72.907GB (24.3%), Free=226.906GB (75.7%)     OK - C:\ClusterStorage\Unity_Cloud\ Total=3,071.813GB, Used=1,113.904GB (36.3%), Free=1,957.909GB (63.7%)     OK - C:\ClusterStorage\V3700_Cloud\ Total=6,246.25GB, Used=5,411.738GB (86.6%), Free=834.512GB (13.4%)     |'C:\ClusterStorage\V7000_DC\ Space'=78283112448B; 'C:\ClusterStorage\V7000_DC\ Utilisation'=24.3%; 'C:\ClusterStorage\Unity_Cloud\ Space'=1196045090816B; 'C:\ClusterStorage\Unity_Cloud\ Utilisation'=36.3%; 'C:\ClusterStorage\V3700_Cloud\ Space'=5810809184256B; 'C:\ClusterStorage\V3700_Cloud\ Utilisation'=86.6%;
/usr/local/lib/nagios/plugins/check_wmi_plus.pl --timeout 60 -H 10.117.73.111  -c _FreeGB=1: -m checkvolsize -p password -u nagioswmi -w _FreeGB=1:  -a C:\\

Trailing \ in regex m/C:\/ at /usr/local/lib/nagios/plugins/check_wmi_plus.pl line 5254.
peterhoeg commented 5 years ago

This repo is just a mirror as upstream only releases tarballs which is quite annoying if you want to check the history. I suggest you approach upstream directly: http://edcint.co.nz/checkwmiplus/