[-]
[+]
|
Changed |
check_equallogic.changes
|
|
[-]
[+]
|
Changed |
check_equallogic.spec
^
|
|
[-]
[+]
|
Changed |
check_equallogic
^
|
@@ -62,6 +62,7 @@
# 20131024 Bugfix in temp check (Backplane_sensor_0 was not shown) #
# 20131025 Optical cleanup #
# 20131122 Bugfix in vol check when volumes spread across members #
+# 20131219 Bugfix in poolusage check when a pool was not used (0 size) #
################################################################################
# Usage: ./check_equallogic -H host -C community -t type [-v volume] [-w warning] [-c critical]
################################################################################
@@ -613,8 +614,8 @@
poolinuse=$(( ${poolused[$c2]}+${pooldelegated[$c2]}+${poolreplication[$c2]} ))
freestorage=$(( (${pooltotal[$c2]} - ${poolinuse})/1024 ))
if [[ ${poolinuse} -gt 0 && ${pooltotal[$c2]} -gt 0 ]]
- then
- usedpercent=$(( (${poolinuse} * 100)/${pooltotal[$c2]} ))
+ then usedpercent=$(( (${poolinuse} * 100)/${pooltotal[$c2]} ))
+ else usedpercent=0
fi
let pooltotal[$c2]=pooltotal[$c2]/1024
let pooldelegated[$c2]=pooldelegated[$c2]/1024
|