Skip to content

Commit

Permalink
Merge pull request #6 from Klintrup:support-latest-controllers
Browse files Browse the repository at this point in the history
Support latest controllers
  • Loading branch information
Klintrup authored Dec 3, 2023
2 parents 9ec4efa + 880bd47 commit 6df2cf2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added quotes in various places for consistency
- Don't set state to unknown if state is already critical (for code added in 1.4)
- unset $ERR before doing anything to avoid problems if the variable is already set
## [1.4.2] - 2007-02-27
### Changed
- The nagios web interface would only show one RAID volume, it seems nagios blocks "|" in the input and throws everything after that away.
- Changed the "|" to a "/" in output
- Thanks to Kai Gallasch for reporting this
## [1.4.3] - 2007-03-23
### Changed
- Changed tr A-Z a-z to tr [:upper:] [:lower:] to prevent problems with various locales.
- Thanks to Oliver Fromme for reporting this
## [1.4.4] - 2007-04-20
### Added
- Added online expansion
- Thanks to Mikael Antonsen for reporting this
## [1.4.5] - 2007-10-08
### Changed
- Problems with status of ADG (Advanced Data Guarding) Volumes fixed.
- Thanks to Peter Larsen for reporting this
## [1.5.0] - 2014-06-25
### Added
- Can now email an address of choice, just use email address(es) as arguments to shellscript
### Changed
- check if camcontrol binary exists on system before running script
## [1.6.0] - 2014-11-18
### Changed
- HP Finally changed the SCSI output of their latest smart array controllers, updated script to be compatible with both versions
- Thanks to Paul Yates for reporting this and providing sample output
5 changes: 2 additions & 3 deletions check_smartarray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
# NRPE check for Proliant SmartArray Controllers (ciss)
# Written by: Søren Klintrup <github at klintrup.dk>
# Get your copy from: https://github.com/Klintrup/check_smartarray/
# version 1.5.0

PATH="/sbin:/bin:/usr/sbin:/usr/bin"
if [ -x "/sbin/camcontrol" ]
then
DEVICES="$(camcontrol devlist|grep "COMPAQ RAID"|sed -Ee 's/.*(pass[0-9]{1,3}).*/\1/')"
DEVICES="$(camcontrol devlist|egrep "(HP|COMPAQ) RAID"|sed -Ee 's/.*(pass[0-9]{1,3}).*/\1/')"
else
ERRORSTRING="camcontrol binary does not exist on system"
ERR=3
Expand Down Expand Up @@ -69,4 +68,4 @@ if [ "${ERRORSTRING}" -o "${OKSTRING}" ]
echo no raid volumes found
exit 3
fi
fi
fi

0 comments on commit 6df2cf2

Please sign in to comment.