check_sasraid_megaraid

Bookmark and Share

Current Version
1.91
Last Release Date
2012-02-08
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
Owner
E-mail
License
GPL
Hits
29441
Files:
FileDescription
check_sasraid_megaraid.plcheck_sasraid_megaraid.pl - version 1.75 (Dec 2007?)
check_sasraid_megaraid_18.plcheck_sasraid_megaraid..pl - version 1.8 (Dec 2010)
check_sasraid_megaraid.plcheck_sasraid_megaraid.pl - version 1.91 (Feb 2012 - the latest)
This plugin uses SNMP to check status of MFTFusion/LSI/Dell Megaraid cards. This will work with both SCSI Megaraid (Dell Perc3 & Perc4 cards), SAS RAID (Dell Perc 5, Perc 6) and MPT Fusion cards. It is not exclusively for Dell though Dell sells by far most of the servers with this type of card.

The type of controller is specified with -T option. Supported types are: megaraid, sasraid, perc3, perc4, perc5, perc6, perch700, mptfusion, sas6ir, sas6
This is a nagios plugin to monitor LSI MegaRAID and attached disks. Newer cards are called MTPFusion and many of these cards are sold by Dell under their own brand name "PERC" (PERC3 - PERC6). Older ones are SCSI RAID cards and newer are SAS RAID cards.

For Megaraid SCSI card you need to have percsnmp package installed. For SAS Megaraid card you need to have sassnmp package (download it from lsi.com, url is listed in the the plugin header doc part).

The plugin started as enhancements of the megaraid nagios plugin from http://www.ibiblio.org/john/megaraid/. Since then over 70% of the code has now been rewritten but it still has overall compatibility to original plugin. New additions include reporting of errors by looking up readfail & writefail OIDs (only on SCSI megaraid) and at 'medium' and 'other' disk errors and reporting if those number have changed (i.e. new error occured - on dell servers this is also reported by openmanage in syslog).

As part of its standard output line plugin also reports number of drives, logical disks and controllers (more fun then just seeing 'OK'), performance data is also provided for number of disk errors. For SCSI Megaraid, drive numbers are reported in format including including controller (0 represents controller 1), channel id (note that 0 is channel A and 1 is channel B) and scsi id.
Reviews (1)
bybva, September 11, 2011
You need to install the "Megaraid Storage Manager" with SNMP support to make the plugin to work.
Once installed, it worked like a charm.

By the way, I don't agree that every SNMP errors are returned as UNKNOWN. I think every unintended errors must be CRITICAL.
I have to modify it manualy. Maybe this could beimplement as an option?