Freewaregruppe Monitoring/Nagios-Plugins
Windows-Plugin: Prüft den Zustand von Adaptec Raid Controllern
check_arcconf ist ein Windows-Plugin für Nagios, welches den Zustand von Adaptec Raid Controllern überprüft (kann auch für ICP Vortex bzw. PMC-Controller verwendet werden).
Das Plugin ermittelt den Zustand von Raid-Verbunden, vom Raid-Controller und von einzelnen Platten (S.M.A.R.T), dabei werden alle Stripe-Typen unterstützt.
Das Adaptec Commandline Tool ist installiert (arcconf.exe).
Aufgerufen wird das Script normalerweise immer mit Pfadangabe zum CLI:
C:> check_arcconf.exe path=<path_to_adaptec_cli>
Zu Debuggingzwecken kann es aber auch mit einer ausführlicheren Ausgabeoption aufgerufen werden (dieser Modus eignet sich nicht für den Dauerbetrieb, sondern dient nur Testzwecken!).
Es werden dann detailliert die Stati der einzelnen Komponenten ausgegeben:
C:> check_arcconf.exe path=“C:\Program Files\Adaptec\maxView Storage Manager“ debug
Path: C:\Program Files\Adaptec\maxView Storage Manager Args: getconfig 1 al Timeout: 15 Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 6405E Controller Serial Number : 12345678901 Physical Slot : 3 Temperature : 60 C/ 140 F (Normal) Installed memory : 128 MB Copyback : Disabled Background consistency check : Disabled Automatic Failover : Enabled Global task priority : High Performance Mode : Default/Dynamic Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 1/0/0 NCQ status : Enabled Statistics data collection mode : Enabled -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (19109) Firmware : 5.2-0 (19109) Driver : 7.1-0 (30034) Boot Flash : 5.2-0 (19109) ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical device number 0 Logical device name : RAID1 RAID level : 1 Status of logical device : Optimal Size : 953334 MB Read-cache setting : Enabled Read-cache status : On Write-cache setting : Enabled Write-cache status : On Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : No Power settings : Disabled -------------------------------------------------------- Logical device segment information -------------------------------------------------------- Segment 0 : Present Controller:1,Connector:0,Device:0) ABCABC Segment 1 : Present Controller:1,Connector:0,Device:1) ABCDAB ---------------------------------------------------------------------- Physical Device information ---------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 6.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : Model : ST1000NM0011 Firmware : SN03 Serial number : ABCABC Reserved Size : 538264 KB Used Size : 953344 MB Unused Size : 64 KB Total Size : 953869 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No NCQ status : Enabled Device #1 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 6.0 Gb/s Reported Channel,Device(T:L) : 0,1(1:0) Reported Location : Connector 0, Device 1 Vendor : Model : ST1000NM0011 Firmware : SN03 Serial number : ABCDAB Reserved Size : 538264 KB Used Size : 953344 MB Unused Size : 64 KB Total Size : 953869 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No NCQ status : Enabled Command completed successfully. RAID OK: Ctrl: Adaptec 6405E - Slot: 3 (Optimal) - Drive: RAID1 [RAID1] Optimal) - Disk: Device #0 (Online) - SMART: No - Disk: Device #1 Online) - SMART: No
Für Informationen zum Plugin und dessen Nutzung kann es mit der Hilfeoption aufgerufen werden:
C:> check_arcconf.exe help
check_arcconf - Revision: 2.3 Copyright (C) 2017 LuftEngineering GmbH Report Bugs to:info@luft-it.de check_arcconf plugin for Nagios. Monitors integrity of a RAID System with arcconf Usage: path - Full path to arcconf.exe (required) args - Arguments for arcconf.exe (default = 'getconfig 1 al') timeout - Seconds before the plugin times out (default = 15) version - Plugin version help - Show this text debug - Print details. NOT for use with nagios
Vorzugsweise wird das Plugin in das Skriptverzeichnis kopiert, in dem man seine Prüfskripte unter Windows ablegt.
Bei Einsatz von NSClient++ wird in der Initialisierungsdatei nsc.ini ein Eintrag ähnlich diesem erzeugt, der auf das Adaptec Commandline Tool verweist:
... [/modules] NRPEServer=enabled CheckExternalScripts=enabled [/settings/NRPE/server] allow arguments=true [/settings/external scripts/scripts] check_arcconf=scripts\check_arcconf.exe path=“c:\program files\adaptec storage manager“ ...
Prüfung ICP-Controller, alles in Ordnung:
C:> check_arcconf path=“C:\Programme\ICP Storage Manager“
RAID OK: Ctrl: ICP 5405 - Slot: 4 (Optimal) - Drive: RAID10 [RAID10] (Optimal) - Disk: Device #0 (Online) - SMART: No - Disk: Device #1 (Online) - SMART: No - Disk: Device #2 (Online) - SMART: No - Disk: Device #3 (Online) - SMART: No
Defekte Platte wurde ausgetauscht:
C:> check_arcconf path=“C:\Programme\Adaptec Storage Manager“
RAID WARNING: Ctrl: Adaptec 6405 - Slot: 4 (Warning) - Drive: RAID10 [RAID10] (Warning) - Disk: Device #0 (Rebuilding 65%) - SMART: No - Disk: Device #1 (Online) - SMART: No - Disk: Device #2 (Online) - SMART: No - Disk: Device #3 (Online) - SMART: No
Störung eines der Raidverbunde nach Smart-Errors der HDD 1 und anschl. Ausfall derselben:
C:> check_arcconf path=“C:\Program Files\Adaptec\maxView Storage Manager“
RAID CRITICAL: Ctrl: Adaptec 6445 - Slot: 6 (Optimal) - Drive: RAID-1 [RAID1] (Optimal) - Drive: RAID-0 [RAIDSimple_volume] (Optimal) - Drive: RAID-5 [RAID5] (Failed) - Disk: Device #0 (Online) - SMART: No - Disk: Device #1 (Offline) - SMART: Yes - Disk: Device #2 (Online) - SMART: No - Disk: Device #3 (Online) - SMART: No - Disk: Device #4 (Online) - SMART: No - Disk: Device #5 (Online) - SMART: No
2022-22-01
2.35 – Several fixes for new MSM versions and raw discs
2017-22-03
2.31 – Extensions for new series 7 and 8 Controller Firmware
2017-20-03
2.30 – Compatibility to Microsemi Adaptec® ARCCONF CommandLine Interface Utility Version 2.03.00 (B22476)
2017-16-03
2.23 – Handling for devices in mode Raw (Pass Through)
2016-09-11
2.22 – Bugfix: Stack empty Error-Handler
2016-07-07
2.21 – Add ignore case to some Regex
2015-09-11
2.1 – Handling for JBOD’s
2014-15-07
2.0 – Handling for global Hot-Spares
2014-06-07
1.9 – Support for .Net 3.5
– fixed problem wit BBU output
2013-08-07
1.8 – new flags and features for several new Controllers
2012-02-02
1.7 – support for 64 bit OS
2011-15-11
1.6 – Better BBU handling
2010-07-07
1.5 – new flags and features for several new Controllers
2010-05-06
1.4 – New error handlers
Added check for arcconf output is complete
2010-08-05
1.3 – New „Battery“ features (ZQ-Controller)
2010-23-04
1.2 – New „Power state“ features
2010-02-02
1.1 – Minor changes to run with .Net 2.0
2010-23-01
1.0 – First public version
check_arcconf wird unter der GNU General Public License zur Verfügung gestellt.
Joachim Luft beantwortet gerne Ihre Fragen zu diesem Plugin und freut sich natürlich auch über eine kleine Spende!