Skip to content

Commit

Permalink
Merge pull request #4 from Klintrup:advanced-data-guarding
Browse files Browse the repository at this point in the history
Problems with status of ADG (Advanced Data Guarding) Volumes fixed.

Thanks to Peter Larsen for reporting this
  • Loading branch information
Klintrup authored Dec 3, 2023
2 parents a7f123d + 0e6a332 commit 52d281d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions check_smartarray.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
# NRPE check for Proliant SmartArray Controllers (ciss)
# Written by: Søren Klintrup <soren at klintrup.dk>
# version 1.4.4
# Written by: Søren Klintrup <github at klintrup.dk>
# Get your copy from: https://github.com/Klintrup/check_smartarray/
# version 1.4.5

PATH="/sbin:/bin:/usr/sbin:/usr/bin"
DEVICES="$(camcontrol devlist|grep "COMPAQ RAID"|sed -Ee 's/.*(pass[0-9]{1,3}).*/\1/')"
Expand All @@ -18,7 +19,7 @@ do
ERRORSTRING="${ERRORSTRING} / ${DEVICENAME}: unknown state"
if ! [ "${ERR}" = 2 ];then ERR=3;fi
else
case $(echo ${DEVICESTRING}|tr [:upper:] [:lower:]|sed -Ee 's/.*(rea|int|exp|rec|fai|ok).*/\1/') in
case $(echo ${DEVICESTRING}|tr [:upper:] [:lower:]|sed -e s/'\>.*'//|sed -Ee 's/.*(rea|int|exp|rec|fai|ok).*/\1/') in
int)
ERR=2
ERRORSTRING="${ERRORSTRING} / ${DEVICENAME}: DEGRADED"
Expand Down

0 comments on commit 52d281d

Please sign in to comment.