Freewaregruppe Monitoring/Nagios-Plugins
check_areca ist ein Windows-Plugin für Nagios, welches den Zustand von Areca Raid Controllern überprüft.
Das Plugin ermittelt den Zustand von Raid-Verbunden und vom Raid-Controller, dabei werden alle Stripe-Typen unterstützt.
Das Areca Commandline Tool ist installiert (cli.exe).
Aufgerufen wird das Script normalerweise immer mit Pfadangabe zum CLI:
C:> check_areca.exe path=<path_to_areca_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_areca.exe path=“C:\Program Files (x86)\MRAID\CLI“ debug
<pre>
Path: C:\Program Files (x86)\MRAID\CLI
Args: vsf info, rsf info, disk info, hw info
Timeout: 15
# Name Raid Name Level Capacity Ch/Id/Lun State
===============================================================================
1 ARC-1216-VOL#000 Raid Set # 000 Raid1+0 480.0GB 00/00/00 Normal
===============================================================================
GuiErrMsg<0x00>: Success.
# Name Disks Total Free State
===============================================================================
1 Raid Set # 000 2 960.0GB 0.0GB Normal
===============================================================================
GuiErrMsg<0x00>: Success.
# Enc# Slot# ModelName Capacity Usage
===============================================================================
1 01 Slot#1 INTEL SSDSC2KB480G8(SED) 480.1GB Raid Set # 000
2 01 Slot#2 INTEL SSDSC2KB480G8(SED) 480.1GB Raid Set # 000
3 01 Slot#3 N.A. 0.0GB N.A.
4 01 Slot#4 N.A. 0.0GB N.A.
===============================================================================
GuiErrMsg<0x00>: Success.
The Hardware Monitor Information
=====================================================
[Controller H/W Monitor]
CPU Temperature : 53 C
Controller Temp. : 33 C
CPU Fan : 5818 RPM
12V : 12.220 V
5V : 5.026 V
3.3V : 3.344 V
IO Voltage +1.8V : 1.792 V
DDR3 +1.5V : 1.520 V
CPU VCore +0.9V : 0.928 V
Ethernet +1.2V : 1.184 V
DDR3 +0.75V : 0.752 V
Battery Status : Not Installed
[Enclosure#1 : SAS RAID Adapter V3.2]
=====================================================
GuiErrMsg<0x00>: Success.
RAID OK: Controller #1: CPU Temperature: 53C – Controller Temp: 33C – CPU Fan: 5818RPM – Battery Status: Not Installed +++ RAID #1: Name: Raid Set # 000 – Disks: 2 – Capacity: 960.0GB – State: Normal +++ Volume #1: Name: ARC-1216-VOL#000 – RaidName: Raid Set # 000 – Level: Raid1+0 – Capacity: 480.0GB – Channel: 00/00/00 – State: Normal +++ Phy. Disk: #1: Enc: 01 – Slot: Slot#1 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #2: Enc: 01 – Slot: Slot#2 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #3: Enc: 01 – Slot: Slot#3 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A. +++ Phy. Disk: #4: Enc: 01 – Slot: Slot#4 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A.
</pre>
Für Informationen zum Plugin und dessen Nutzung kann es mit der Hilfeoption aufgerufen werden:
C:> check_areca.exe help
<pre>
check_areca – Revision: 1.00
Copyright (C) 2019 LuftEngineering GmbH
Report Bugs to:development@luft-it.de
check_areca plugin for Nagios. Monitors integrity of a RAID System from ARECA
Usage:
path – Full path to cli.exe (Default: ‚C:\Program Files (x86)\MRAID\CLI>cli.exe‘)
args – Arguments for cli.exe (default = ‚“vsf info ,rsf info, disk info, hw info“‚)
timeout – Seconds before the plugin times out (default = 15)
version – Plugin version
help – Show this text
debug – Print details. NOT for use with nagios
</pre>
<pre>
…
[/settings/NRPE/server] allow arguments=true [/settings/external scripts/server] allow arguments=true [/settings/external scripts/scripts] check_areca=c:\nsclient++\scripts\check_areca.exe path=“c:\program files (x86)\mraid\cli“
…
</pre>
Prüfung Areca-Controller, alles in Ordnung:
C:> check_areca path=“C:\Program Files (x86)\MRAID\CLI“
<pre>
RAID OK: Controller #1: CPU Temperature: 53C – Controller Temp: 33C – CPU Fan: 5818RPM – Battery Status: Not Installed +++ RAID #1: Name: Raid Set # 000 – Disks: 2 – Capacity: 960.0GB – State: Normal +++ Volume #1: Name: ARC-1216-VOL#000 – RaidName: Raid Set # 000 – Level: Raid1+0 – Capacity: 480.0GB – Channel: 00/00/00 – State: Normal +++ Phy. Disk: #1: Enc: 01 – Slot: Slot#1 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #2: Enc: 01 – Slot: Slot#2 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #3: Enc: 01 – Slot: Slot#3 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A. +++ Phy. Disk: #4: Enc: 01 – Slot: Slot#4 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A.
</pre>
Defekte Platte wurde ausgetauscht:
C:> check_areca path=“C:\Program Files (x86)\MRAID\CLI“
<pre>
RAID CRITICAL: Controller #1: CPU Temperature: 53C – Controller Temp: 33C – CPU Fan: 5818RPM – Battery Status: Not Installed +++ RAID #1: Name: Raid Set # 000 – Disks: 2 – Capacity: 960.0GB – State: Rebuilding +++ Volume #1: Name: ARC-1216-VOL#000 – RaidName: Raid Set # 000 – Level: Raid1+0 – Capacity: 480.0GB – Channel: 00/00/00 – State: Rebuilding(1.1%) +++ Phy. Disk: #1: Enc: 01 – Slot: Slot#1 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #2: Enc: 01 – Slot: Slot#2 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 << +++ Phy. Disk: #3: Enc: 01 – Slot: Slot#3 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A. +++ Phy. Disk: #4: Enc: 01 – Slot: Slot#4 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A.
</pre>
Ausfall einer Festplatte:
C:> check_areca path=“C:\Program Files (x86)\MRAID\CLI“
<pre>
RAID CRITICAL: Controller #1: CPU Temperature: 53C – Controller Temp: 33C – CPU Fan: 5818RPM – Battery Status: Not Installed +++ RAID #1: Name: Raid Set # 000 – Disks: 2 – Capacity: 960.0GB – State: Degraded +++ Volume #1: Name: ARC-1216-VOL#000 – RaidName: Raid Set # 000 – Level: Raid1+0 – Capacity: 480.0GB – Channel: 00/00/00 – State: Degraded +++ Phy. Disk: #1: Enc: 01 – Slot: Slot#1 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Raid Set # 000 +++ Phy. Disk: #2: Enc: 01 – Slot: Slot#2 – ModelName: INTEL SSDSC2KB480G8(SED) – Capacity: 480.1GB – Usage: Failed +++ Phy. Disk: #3: Enc: 01 – Slot: Slot#3 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A. +++ Phy. Disk: #4: Enc: 01 – Slot: Slot#4 – ModelName: N.A. – Capacity: 0.0GB – Usage: N.A.
2019-09-05
1.0 – First public version