RAID Controllers

check_megasasctl

Description:

Current Version

0.0.1

Last Release Date

2010-05-13

Compatible With

  • Nagios 2.x
  • Nagios 3.x

Project Files
Project Notes
A plugin to check the health and status of disk and logical drives attached to LSI megaraid SAS controllers. This plugin calls/uses the opensource megasasctl utility to determine the health of disks and logical drive units attached to Megraid SAS controllers. It has been tested by the author on Dell PERC 5 & 6 controllers, but should work well with any controller supported by the MegaCli tool. This plugin was primarily written because the execution time using LSI's MegaCli was utility pretty high for servers with multiple arrays. This meant getting the status information back on arrays, disks, and BBUs was difficult which would often lead to Nagios NRPE check time outs. For more information on the use of the open source megasasctl utility please check: http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS **Special Attention: (from the above site) "3.5. About /dev/megaraid_sas_ioctl_node All theses tools requires this device node to be created. It has to be done by hand. Proprietary tools creates the device node at startup. I made some wrappers around binaries from megactl package to create the node if it doesn't exist yet."
Reviews (1) Add a Review
It works but not with all types of HDD
by zorixx, June 30, 2016

With seagate HDD it works perfect but with WD HDD I had a problem because of this string: grep "${i} " $TEMPRAIDSTATUS | grep -v "row" | sed 's/ */ /g'| cut -d' ' -f6 with the last "cut" seagate output without "cut": a0e32s1 SEAGATE ST32000444SS 1863GiB a0d0 online WD output without "cut": a0e32s0 ATA WDC WD2000FYYZ-0 1863GiB a0d0 online So when cut works on seagate CURRENTDISKSTATUS=online on wd CURRENTDISKSTATUS=a0d0 So for WD HDD you need to change this string to : # Log list of degraded disks CURRENTDISKSTATUS=$( grep "${i} " $TEMPRAIDSTATUS | grep -v "row" | sed 's/ */ /g'| cut -d' ' -f7 );



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
0
Views
95,460