Changes of Revision 2
[-] | Changed | nagios-plugins-cciss.spec |
x 1
2 Name: nagios-plugins-cciss 3 -Version: 1.8 4 +Version: 1.9 5 Release: 1 6 License: GPL 7 Group: Applications/System 8
9 /usr/lib/nagios/plugins/check_cciss 10 11 %changelog 12 +* Fri Aug 19 2011 Carsten Schoene <cs@linux-administrator.com> - 1.9-1 13 +- update to version 1.9 14 + 15 * Thu Apr 01 2010 Carsten Schoene <cs@linux-administrator.com> - 1.8-1 16 - initial build 17 |
||
[+] | Changed | check_cciss ^ |
@@ -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 |