This is a simple Nagios plugin to monitor the state of RAID arrays on Adaptec RAID cards, using Adaptec's arcconf utility from their StorMan (Storage Manager) software, which you can download for Linux, FreeBSD and Windows from their website: http://www.adaptec.com/en-us/downloads/
You probably don't want to be running your Nagios plugins as root. However, arcconf needs to run as root. So, this script uses sudo to execute arcconf as root.
You'll need to allow this to happen with no password. For security, I'd only allow the nagios user to run the arcconf command - add something like this to the sudoers file:
nagios ALL= NOPASSWD: /usr/StorMan/arcconfBy default, this plugin expects to find the arcconf binary at /usr/StorMan/arcconf.
However, if you need to, you can provide the path to the arcconf binary using the --arcconf option, e.g.:
./nagios_adaptec_raid_check --arcconf_cli=/path/to/arcconfThis plugin is developed on GitHub at:
https://github.com/bigpresh/misc-scripts/tree/master/nagios_adaptec_raid_check
Patches / bug reports / feedback welcome.
David Precious <[email protected]>