Changes of Revision 2
[-] | Added | nagios-plugins-cciss.changes |
1
2 +------------------------------------------------------------------- 3 +Fri Oct 7 11:32:09 UTC 2011 - cs@linux-administrator.com 4 + 5 +- Update to version 1.12: 6 + * support newer kernels with hpsa driver 7 + 8 |
||
[-] | Changed | nagios-plugins-cciss.spec ^ |
8 1
2 Name: nagios-plugins-cciss 3 -Version: 1.11 4 +Version: 1.12 5 Release: 1 6 License: GPL 7 Group: Applications/System 8 |
||
[+] | 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) +# Extended by Carsten Schoene (cs@linux-administrator.com) # # Description: # @@ -55,6 +55,9 @@ # # ChangeLog: # +# 07/10/11 (1.12) +# - Added support for newer kernels with hpsa driver +# # 19/08/11 (1.11) # - Added support to disable chache check (-c) # @@ -105,6 +108,7 @@ NO_CACHE="0" HPPROC="/proc/driver/cciss/cciss" COMPAQPROC="/proc/driver/cpqarray/ida" +HPSASYS="/sys/bus/pci/drivers/hpsa" hpacucli="/usr/sbin/hpacucli" . $PROGPATH/utils.sh @@ -172,8 +176,12 @@ echo ${raid} fi if test ${status} -eq 1; then - raid=`cat $COMPAQPROC* 2>&1` - status=$? + if [ -n "` ls -1A $COMPAQPROC* 2>/dev/null`" ] ; then + raid=`cat $COMPAQPROC* 2>&1` + status=$? + elif [ -d "$HPSASYS" ] ; then + status=0 + fi if [ "$DEBUG" = "1" ]; then echo ${raid} fi |