Search All Sites
Nagios Live WebinarsLet our experts show you how Nagios can help your organization.
Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
|check_sasraid_megaraid.pl||check_sasraid_megaraid.pl - version 1.75 (Dec 2007?)|
|check_sasraid_megaraid_18.pl||check_sasraid_megaraid..pl - version 1.8 (Dec 2010)|
|check_sasraid_megaraid.pl||check_sasraid_megaraid.pl - version 1.92 (Feb 2012)|
|check_snmp_raid.pl||check_snmp_raid.pl - version 2.2 (May 2013) - latest release under check_snmp_raid name, supports more devices and checks|
The type of controller is specified with -T option. Supported types are: megaraid, sasraid, perc3, perc4, perc5, perc6, perch700, mptfusion, sas6ir, sas6, adaptec, hp, smartarray, eti, ultrastor, synology
It should be fairly easy to extend this to new cards and devices if you know how to read MIB.
Originally written to support LSI SCSI Megaraid cards (sold as Dell PERC3 and PERC4), it was later extended to support newer LSI SAS RAID cards (also sold as Dell PERC 5, PERC 6) and MPT Fusion (SAS6ir) cards. Starting with version 2.x it has support for Adaptec, HP Smart Array, ETI Ultrastor and Synology controllers and NAS devices.
For Megaraid SCSI card you need to have percsnmp package, for SAS Megaraid card you need sassnmp package (get it from lsi.com). For other cards please check with your vendor.
As part of its standard output line plugin reports number of controllers, physical drives, logical disks. Number of batteries is also reported for some sas cards. Drive numbers are reported in format x/y/z where x is controller (0 represents controller 1), y is channel id (note that 0 is channel A and 1 is channel B) and z is scsi or sas id on same channel.
For megaraid readfail & writefail errors and medium and other errors on drives are also reported. Model number of hard drives can be included with some devices as well as ate of rebuild; Power status and other controller checks are made for some devices.
If you want to another card or NAS and have a MIB for it, you should be able to add it fairly easily by adding proper OIDs that give status of physical and logical drives to an extendable array of what is to be checked based on card type. List of all card types and alias names for them are in another array (from 2.2 version). These are all at the top of the code below documentation header but above other plugin functions.
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?