Also see my Perc4/Di plugin.
Also see my LSI 2.6 Kernel plugin.
This is an attempt to integrate all the various afacli (afaapps) and Nagios plugin projects, so that I have a robust plugin for the dozens of Dell Poweredge 2650's we own. I don't want to install OSMA, or SNMP on my boxes; I'd rather that my equipment fit into my monitoring system, and not the other way around. The software I am using:The afacli program is a horrible beast. It is very much a DOS program that was poorly ported to UNIX. Due to its interface limitations, we need to use temp files to communicate with it. On top of that, we are unable to both use a log file and a batch script. On top of that, there's a race condition in the stdin for afacli that eats characters every once in a while. It's lovely. Despite these shortcomings, we've managed to put together a fairly clever script, which you can download here:
check_raid.pl [2005-06-01] [Changes] [Diff]
check_raid.pl [2005-05-13] [Changes] [Diff]
check_raid.pl [2004-09-15] [Changes] [Diff]
check_raid.pl [2004-08-25]
Addtionally, this program must run with root privileges, even though it only opens the containers in read-only mode from the RAID array (did I mention that afacli isn't so nice?). One option is to use sudo for the nagios/nrpe user to run afacli. Another option is to use a suid C program like this one to wrap your script in.
You may wish to write your own afacli plugin; the following sources were very helpful to me (thanks, everyone):
--
May 15, 2005 -- Craig Kelley