[-]
[+]
|
Changed |
nagios-plugins-cciss.spec
|
|
[-]
[+]
|
Changed |
check_cciss
^
|
@@ -55,7 +55,7 @@
#
# ChangeLog:
#
-# 19/08/11 (1.9)
+# 19/08/11 (1.10)
# - Added support to disable chache check (-c)
#
# 10/06/08 (1.8)
@@ -235,9 +235,10 @@
echo "RAID CRITICAL - HP Smart Array Failed: "${check} | egrep Failed
exit $STATE_CRITICAL
elif [ "$NO_CACHE" != "1" ] ; then
- echo ${check} | egrep Disabled >/dev/null; then
+ if echo ${check} | egrep Disabled >/dev/null; then
echo "RAID CRITICAL - HP Smart Array Problem: "${check} | egrep Disabled
exit $STATE_CRITICAL
+ fi
elif echo ${check2} | egrep Rebuild >/dev/null; then
echo "RAID WARNING - HP Smart Array Rebuilding: "${check2} | egrep Rebuild
exit $STATE_WARNING
|