
|
|
afacli under SLE9 |
|
I thank Jonathan Delgado for posting this to the linux-pe list.
http://www.techno-obscura.com/~delgado/notes/sles9-NagiosAfacli.html Monitoring PERC3Di controllers with afacli and Nagios on SLES9IntroThese docs describe the basic process of going about monitoring a Dell PERC3Di controller (as found on the PowerEdge 1650) via Nagios and afacli under SuSE Linux Enterprise Server 9 (SLES9). Just to say, Nagios is a super useful open source tool for monitoring various network services and such. You can find the full deal on it at the Nagios home.
Also, these directions would presumably work for any other system, Dell PowerEdge or not, with the
same family of Adaptec RAID controllers which use the aacraid driver and can thus be monitored via
the As always, any comments, code enhancements, etc that you might have are always appreciated. The ProblemSo, I've got a rack full of Dell PowerEdge servers... mostly 1650s and 1750s. They have nifty RAID controllers, but we hadn't really been monitoring them actively, mainly the occasion check of the status lights on the systems. Not much point in having a RAID if you don't know when it stops having redundancy. Now, with Dell it would seem that if I ran Red Hat in their preferred releases, I would be able to use some of the canned Dell management systems for Linux. One problem (of many) is that I am lazy and I didn't want to go through the whole hassle of trying to get the Dell management solution running under SLES. The other problem is that I just don't trust running the Dell stuff, besides, I already have Nagios installed and it rocks. The SolutionThe basic way that things work is like so:
Getting all of this to work requires three basic parts:
afacli
Otherwise you want to find NagiosI can't and won't go into the details of setting up Nagios monitoring, please refer to the Nagios home for that. For the purposes of this doc, I am that you are remotely monitoring the RAID. If it is a local RAID, then you can obviously cut out many steps.
There isn't much Nagios-wise that needs to be installed on the system to be monitored. Basically,
you need to install all of the glue to enable the remote execution and results gathering from the
Nagios plugin. SLES9 comes with a
Because I am checking the state of the RAID remotely, I need to setup a daemon on the system to answer
the requests to check on the RAID. The tool used for this is
The Nagios server has to know how to call
define command{
command_name check_afacli
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_afacli -t 30
}
check_afacli
There isn't a whole lot to say about my script, If you decide to adopt it for your own use, you will need to customize any paths to required files as needed, of course.
Also, the script is being executed as the nagios user by the nrpe daemon, to
you need to be sure that the nagios user has permission to run afacli. I did this by enabling the
nagios user to sudo afacli without requiring a password. So my
The plugin redirects a set of commands to
logfile start '/tmp/afacli.log'
open afa0
controller details
container list /all /full
enclosure show slot
close
logfile end
exit
Yes, the spaces do seem to be required in there, that isn't just indenting for the sake of it. You
could also add more commands to be passed to
To-DosSome things I need to work on with this:
atr | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||