Home Directory Plugins Hardware Storage Systems RAID Controllers LSI Mega RAID plugin for 32-bit and 64-bit systems

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

LSI Mega RAID plugin for 32-bit and 64-bit systems

Rating
1 vote
Favoured:
1
Hits
104249
Files:
FileDescription
check_lsi_megaraid.txtversion 0.8
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Plugin to test LSI MegaRaid or Dell Perc arrays on 32-bit and 64-bit systems
This plugin has been tested on Linux with 320-xx series LSI Raid controllers on both 32-bit and 64-bit architectures as well as Dell Perc Raid.

It requires that you have the megarc.bin utility which can be downloaded from LSI's website at http://www.lsi.com/files/support/rsa/utilities/megaconf/ut_linux_megarc_1.11.zip

All you have to do is put the plugin and the utility in the same directory and then run the plugin.

You will need to run the plugin as root as this is the only way it can get the details on the RAID arrays. This is not my design but that of LSI. Use sudo to run the plugin as the nagios user with the privileges of root.

Put the following line in your /etc/sudoers file to allow the nagios user to run the plugin as root:

nagios ALL=(ALL) NOPASSWD: /path/to/check_lsi_megaraid


Run the plugin is as follows:

sudo /path/to/check_lsi_megaraid
RAID OK: All arrays OK [12 arrays checked on 2 controllers]


This runs straight on both 32-bit and 64-bit systems and all modern linux distros that have Python.

This has been tested and works on servers of both x86 and amd64/x86_64 architectures and across distros.

NOTE: The way the megamgr.bin and the Bios count arrays (starting at 1) is different to the way megarc.bin counts arrays (starting at 0) so this plugin counts arrays starting at 1 to follow the Bios and megamgr.bin. This makes more sense since most people will use these to manage their arrays.
Support

If you have any issues, contact me at hpsekhon(AT)googlemail.com
Reviews (1)
byHassib Belhaj, September 12, 2014
Thanks, very useful script.

I have has a small problem with it on older Linux systems. in the SRCDIR definition:

os.path.dirname() does not return a full path if sys.argv[0] doesn't contain one, which result in an error. (This is the case on some systems, like older versions of CentOS).

replacing it with the following:

SRCDIR = os.path.abspath(os.path.dirname(sys.argv[0]))

would solv the problem and be more robust.

Regards