From: Buchan M. <bg...@st...> - 2008-01-14 17:40:46
|
I had problems with the compaq-server's raid test, in that it would give me errors about missing repeaters (may be due to the fact that most of our servers don't have hot spares in their arrays). Eric reported that he didn't have problems, however, I required the attached patch to get it to work correctly. If anyone else has the compaq-server raid test working correctly, I will consider adding a new device type (with some distinguishing detail, maybe my version of hpasm is too old, or too new) with just this change. Regards, Buchan Index: templates/compaq-server/raid/thresholds =================================================================== --- templates/compaq-server/raid/thresholds (revision 30) +++ templates/compaq-server/raid/thresholds (working copy) @@ -1,19 +1,7 @@ -cntrlCondTxt : green : OK -cntrlCondTxt : yellow : Other|Degraded -cntrlCondTxt : red : Failed +logStatTxt : green : OK|Expanding|Queued for expansion : Normal +logStatTxt : yellow : Unconfigured|Recovering|Read rebuild| Rebuilding|Not available : Recovering +logStatTxt : red : Failed|Wrong drive|Bad connect|Overheating| Shutdown : Logical drive has failed -cntrlStatTxt : green : OK -cntrlStatTxt : yellow : Other -cntrlStatTxt : red : General failure|Cable problem|Powered off - -logStatTxt : green : OK|Expanding|Queued for expansion -logStatTxt : yellow : Unconfigured|Recovering|Read rebuild| Rebuilding|Not available -logStatTxt : red : Failed|Wrong drive|Bad connect|Overheating| Shutdown - -phyStatTxt : green : OK -phyStatTxt : yellow : Other -phyStatTxt : red : Failed|Predictive Failure - -sprStatTxt : green : Inactive -sprStatTxt : yellow : Building|Active -sprStatTxt : red : Failed +phyStatTxt : green : OK : Normal +phyStatTxt : yellow : Other : Unknown failure +phyStatTxt : red : Failed|Predictive Failure : Physical drive has failed Index: templates/compaq-server/raid/message =================================================================== --- templates/compaq-server/raid/message (revision 30) +++ templates/compaq-server/raid/message (working copy) @@ -1,9 +1,4 @@ -Controller status: -TABLE: noalarmsmsg -ID|Model|Firmware Rev|Condition|Status -{cntrlIndex}|{cntrlModTxt}|{cntrlFwRev}|{cntrlCondTxt.color}{cntrlCondTxt}| {cntrlStatTxt.color}{cntrlStatTxt} - Logical drive status: TABLE: noalarmsmsg ID|Controller|Fault Tolerance|Size|OS name|Pysical IDs|Spare IDs|Status @@ -11,10 +6,5 @@ Physical drive status: TABLE: noalarmsmsg -ID|Controller|Bay|Model|Firmware Rev|Speed|Size|Status -{phyDrvIndex}|{phyDrvCntIndex}|{phyDrvBay}|{phyDrvModel}|{phyDrvFwRev}| {phyDrvSpdTxt}|{phyDrvSize}mb|{phyStatTxt.color}{phyStatTxt} - -Spare drive status: -TABLE: noalarmsmsg -Physical Drive ID|Controller|Status -{sprDrvIndex}|{sprDrvCntIndex}|{sprStatTxt.color}{sprStatTxt} +ID|Controller|Bay|Model|Firmware Rev|Speed|Size|Serial|Status +{phyDrvIndex}|{phyDrvCntIndex}|{phyDrvBay}|{phyDrvModel}|{phyDrvFwRev}| {phyDrvSpdTxt}|{phyDrvSize}mb|{phyDrvSerial}|{phyStatTxt.color}{phyStatTxt} Index: templates/compaq-server/raid/transforms =================================================================== --- templates/compaq-server/raid/transforms (revision 30) +++ templates/compaq-server/raid/transforms (working copy) @@ -1,7 +1,3 @@ -cntrlModTxt : SWITCH : {cntrlModel} 1=Other,2=IDA,3=IDA Expansion,4=IDA-2,5=SMART,6=SMART-2/E,7=SMART-2/P,8=SMART-2SL,9=Smart 3100ES,10=Smart 3200,11=SMART-2DH,12=Smart Array 221,13=Smart Array 4250ES,14=Smart Array 4200,15=Integrated Smart Array,16=Smart Array 431,17=Smart Array 5300,18=RAID LC2,19=Smart Array 5i,20=Smary Array 532,21=Smart Array 5312,22=Smart Array 641,23=Smart Array 642,24=Smart Array 6400,25=Smart Array 6400EM,26=Smart Array 6i,27=Generic Smart Array,29=Smart Array P600,30=Smart Array P400,31=Smart Array E200,32=Smart Array E200i,33=Smart Array P400i,34=Smart Array P800 -cntrlCondTxt : SWITCH : {cntrlCondition} 1=Other,2=OK,3=Degraded,4=Failed -cntrlStatTxt : SWITCH : {cntrlStatus} 1=Other,2=OK,3=General failure,4=Cable problem,5=Powered off - logFaultTolTxt : SWITCH : {logDrvFaultTol} 2=None,3=Mirroring,4=Data guard,5=Distributed data guard,6=Advanced data guard logStatTxt : SWITCH : {logDrvStatus} 2=OK,3=Failed,4=Unconfigured,5=Recovering,6=Read rebuild,7=Rebuilding,8=Wrong drive,9=Bad connect,10=Overheating,11=Shutdown,12=Expanding,13=Not available,14=Queued for expansion logSprIdTxt : UNPACK : {logDrvSprIds} C* "," @@ -9,5 +5,3 @@ phyStatTxt : SWITCH : {phyDrvStatus} 1=Other,2=OK,3=Failed,4=Predictive Failure phyDrvSpdTxt : SWITCH : {phyDrvSpeed} 1=Other,2=7200 rpm,3=10k rpm,4=15k rpm - -sprStatTxt : SWITCH : {sprDrvStatus} 3=Failed,4=Inactive,5=Building,6=Active Index: templates/compaq-server/raid/oids =================================================================== --- templates/compaq-server/raid/oids (revision 30) +++ templates/compaq-server/raid/oids (working copy) @@ -1,9 +1,3 @@ -cntrlIndex : 1.3.6.1.4.1.232.3.2.2.1.1.1 : branch -cntrlModel : 1.3.6.1.4.1.232.3.2.2.1.1.2 : branch -cntrlFwRev : 1.3.6.1.4.1.232.3.2.2.1.1.3 : branch -cntrlCondition : 1.3.6.1.4.1.232.3.2.2.1.1.6 : branch -cntrlStatus : 1.3.6.1.4.1.232.3.2.2.1.1.12 : branch - logDrvCntIndex : 1.3.6.1.4.1.232.3.2.3.1.1.1 : branch logDrvIndex : 1.3.6.1.4.1.232.3.2.3.1.1.2 : branch logDrvFaultTol : 1.3.6.1.4.1.232.3.2.3.1.1.3 : branch @@ -21,8 +15,4 @@ phyDrvStatus : 1.3.6.1.4.1.232.3.2.5.1.1.6 : branch phyDrvSize : 1.3.6.1.4.1.232.3.2.5.1.1.45 : branch phyDrvSpeed : 1.3.6.1.4.1.232.3.2.5.1.1.59 : branch - -sprDrvCntIndex : 1.3.6.1.4.1.232.3.2.4.1.1.1 : branch -sprDrvIndex : 1.3.6.1.4.1.232.3.2.4.1.1.2 : branch -sprDrvStatus : 1.3.6.1.4.1.232.3.2.4.1.1.3 : branch - +phyDrvSerial : 1.3.6.1.4.1.232.3.2.5.1.1.51 : branch Index: templates/compaq-server/fans/thresholds =================================================================== --- templates/compaq-server/fans/thresholds (revision 30) +++ templates/compaq-server/fans/thresholds (working copy) @@ -1,5 +1,4 @@ -cpqHeFltTolFanConditionTxt : green : OK : Fan OK -cpqHeFltTolFanConditionTxt : clear : Other : Fan state unkn -own +cpqHeFltTolFanConditionTxt : green : OK : Fan OK +cpqHeFltTolFanConditionTxt : clear : Other : Fan state unknown cpqHeFltTolFanConditionTxt : yellow : Degraded : Fan Degraded or other problem -cpqHeFltTolFanConditionTxt : red : Failed : Fan has failed +cpqHeFltTolFanConditionTxt : red : Failed : Fan has failed |