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

check_lsi_megaraid

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