@@ -4,7 +4,7 @@
# ( With HP Array Configuration Utility CLI hpacucli-x.y.*.rpm )
#
# Written by Simone Rosa (info@simonerosa.it)
-#
+# Extende by Carsten Schoene (cs@linux-administrator.com)
#
# Description:
#
@@ -55,6 +55,9 @@
#
# ChangeLog:
#
+# 19/08/11 (1.9)
+# - Added support to disable chache check (-c)
+#
# 10/06/08 (1.8)
# - Added support for chassis name (example MSA500)
# - Added arguments to exclude slot number (-e <n>) and chassis name (-E <name>)
@@ -107,13 +110,14 @@
print_usage() {
echo ""
- echo "Usage: $PROGNAME [-v] [-e <number>] [-E <name>] [-d]"
+ echo "Usage: $PROGNAME [-v] [-e <number>] [-E <name>] [-c] [-d]"
echo "Usage: $PROGNAME [-h]"
echo "Usage: $PROGNAME [-V]"
echo ""
echo " -v = output status and informations about RAID"
echo " -e <number> = exclude slot number"
echo " -E <name> = exclude chassis name"
+ echo " -c = exclude controller cache check"
echo " -d = use for debug ( command line mode )"
echo " -h = help information"
echo " -V = version information"
@@ -143,7 +147,7 @@
do
case $options in
N) ;;
- c) ;;
+ c) NO_CACHE=1;;
v) VERBOSE=1;;
d) DEBUG=1;;
e) EXCLUDE_SLOT=1
@@ -230,7 +234,8 @@
if echo ${check} | egrep Failed >/dev/null; then
echo "RAID CRITICAL - HP Smart Array Failed: "${check} | egrep Failed
exit $STATE_CRITICAL
-elif echo ${check} | egrep Disabled >/dev/null; then
+elif [ "$NO_CACHE" != "1" ] ; then
+ echo ${check} | egrep Disabled >/dev/null; then
echo "RAID CRITICAL - HP Smart Array Problem: "${check} | egrep Disabled
exit $STATE_CRITICAL
elif echo ${check2} | egrep Rebuild >/dev/null; then
|