Changes of Revision 9
[-] | Changed | check_equallogic.changes |
x 1
2 ------------------------------------------------------------------- 3 +Fri Nov 22 18:16:24 UTC 2013 - cs@linux-administrator.com 4 + 5 +- update to release 20131122 6 + * Bugfix in vol check when volumes spread across members 7 + 8 +------------------------------------------------------------------- 9 Mon Oct 28 13:01:41 UTC 2013 - cs@linux-administrator.com 10 11 - update to release 20131025 12 |
||
[-] | Changed | check_equallogic.spec ^ |
8 1
2 Name: check_equallogic 3 -Version: 20131025 4 +Version: 20131122 5 Release: 1 6 Url: http://www.claudiokuenzler.com/nagios-plugins/check_equallogic.php 7 Group: Applications/System 8 |
||
[+] | Changed | check_equallogic ^ |
@@ -61,6 +61,7 @@ # 20130728 Added copy to spare raid status by Peter Lieven # # 20131024 Bugfix in temp check (Backplane_sensor_0 was not shown) # # 20131025 Optical cleanup # +# 20131122 Bugfix in vol check when volumes spread across members # ################################################################################ # Usage: ./check_equallogic -H host -C community -t type [-v volume] [-w warning] [-c critical] ################################################################################ @@ -797,7 +798,7 @@ then echo "CRITICAL - No volume name given."; exit 2 fi -volarray=$(snmpwalk -v 2c -c ${community} ${host} 1.3.6.1.4.1.12740.5.1.7.1.1.4 | grep -n "\"${volume}\"" | cut -d : -f1) +volarray=$(snmpwalk -v 2c -c ${community} ${host} 1.3.6.1.4.1.12740.5.1.7.1.1.4 | grep -n "\"${volume}\"" | sed -n '1p' | cut -d : -f1) volavailspace=$(snmpwalk -v 2c -O vqe -c ${community} ${host} 1.3.6.1.4.1.12740.5.1.7.1.1.8 | awk "NR==${volarray}") humanavailspace=$((${volavailspace} / 1024)) perfavailspace=$((${volavailspace}*1024*1024)) |