Freeware and Plugins

Freewaregruppe Monitoring/Nagios-Plugins

check_arcconf.pl

Linux-Plugin: checks the status of Adaptec Raid Controllers (can also be used for ICP- or PMC-Vortex Controller)

Description

check_arcconf.pl is a linux plugin for Nagios which checks the status of Adaptec Raid Controllers (can also be used for ICP- or PMC-Vortex Controller).
The plugin determines the status of Raidsets, RAID controllers and of individual disks (S.M.A.R.T), while all stripe types are supported.

Requirements

The Adaptec Commandline tool is installed (arcconf.pl).

Documentation

Usually you open the script with the path to CLI:

# check_arcconf.pl path=<path_to_adaptec_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 of the individual components:

OMD[le]:~$ local/lib/nagios/plugins/check_arcconf.pl debug

Path: /usr/StorMan/arcconf
 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

Installation

Preferably the plugin is copied into the script directory where you will store your checks under Windows

When using NSClient ++ use an entry in NSC.INI similar to this, pointing to Adaptec Commandline Tool:

...
[check_arcconf.pl]=/usr/local/nagios/libexec/check_arcconf.pl –-path /usr/local/StorMan/arcconf.pl
...

Examples

Check ICP-Controller, if everything is all right:
OMD[le]:~$ local/lib/nagios/plugins/check_arcconf.pl  

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

Broken Disk was changed: OMD[le]:~$ local/lib/nagios/plugins/check_arcconf.pl  

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

Disturbance of the Raid smart composites after failing hard disk 1 and afterwards same failure: OMD[le]:~$ local/lib/nagios/plugins/check_arcconf.pl

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

Changelog

2019-06-16
Bugfix Release

2016-23-07
1.41 – more features (new controllers)

2015-10-09
1.4 – more features (dedicated Hot-Spare and JBOD Support)

2015-30-08
1.3 – several bugfixes, support for series 7 & 8 Controllers

2014-11-15
1.2 – more features (newer controllers)

2013-21-02
1.1 – more features (newer controllers)

2010-29-04
1.0 – First public version

Copyright

check_arcconf.pl is licensed under the GNU General Public License.

Autor

Joachim Luft will answer your questions to this plugin and is happy about your donation.

 

Freeware name

check_arcconf.pl

  • System: Nagios Plugins und Addons
  • Date: 16.June 2019
  • Author: Joachim Luft
  • Version: 1.5

Category: Monitoring/Nagios-Plugins

Tags: Linux-Plugin

Download