Freewaregruppe Monitoring/Nagios-Plugins
check_areca is a Windows plugin for Nagios which checks the status of Areca Raid Controllers.
The plugin determines the status of Raidsets and RAID-Controllers, while all stripe sets are supported.
The Areca Commandline Tool is installed (cli.exe).
Usually you run the plugin with path to CLI:
C:> check_areca.exe path=<path_to_areca_cli>
For debugging purposes, it may also be called with a more detailed output option (this mode is not suitable for continuous operation, but for testing purposes only). Afterwards it will output the detailed status oft he individual components:
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>
For information on the plugin and its usage you can call it with the help command:
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>
Check Areca-Controller, if everything is all right:
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>
Broken Disc was changed:
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>
Failure of a disc:
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.
</pre>
2019-09-05
1.0 – First public version