check_aaccli Nagios Plugin README
---------------------

This plugin checks the hardware health of Adaptec Raid controllers with the 
aaccli software installed. It uses the aaccli command to acquire the 
condition of the adapter's disks and containers.

* For instructions on installing this plugin for use with Nagios,
  see below. In addition, generic instructions for the GNU toolchain
  can be found in the INSTALL file.

* For major changes between releases, read the CHANGES file.

* For information on detailed changes that have been made,
  read the Changelog file.

* This plugins is self documenting.  All plugins that comply with
  the basic guidelines for development will provide detailed help when
  invoked with the '-h' or '--help' options.

You can check for the latest plugin at:
  http://www.consol.de/opensource/nagios/check-aaccli

Send mail to gerhard.lausser@consol.de for assistance.  
Please include the OS type and version that you are using.
Also, run the plugin with the '-v' option and provide the resulting 
version information.  Of course, there may be additional diagnostic information
required as well.  Use good judgment.


How to "compile" the check_aaccli script.
--------------------------------------------------------

1) Run the configure script to initialize variables and create a Makefile, etc.

	./configure --prefix=BASEDIRECTORY --with-nagios-user=SOMEUSER --with-nagios-group=SOMEGROUP --with-perl=PATH_TO_PERL --with-noinst-level=LEVEL --with-aaccli=PATH_TO_AACCLI

   a) Replace BASEDIRECTORY with the path of the directory under which Nagios
      is installed (default is '/usr/local/nagios')
   b) Replace SOMEUSER with the name of a user on your system that will be
      assigned permissions to the installed plugins (default is 'nagios')
   c) Replace SOMEGRP with the name of a group on your system that will be
      assigned permissions to the installed plugins (default is 'nagios')
   d) Replace PATH_TO_PERL with the path where a perl binary can be found.
      Besides the system wide perl you might have installed a private perl
      just for the nagios plugins (default is the perl in your $PATH).
   e) Replace LEVEL with one of ok, warning, critical or unknown.
      If the required aaccli binary is not installed, the check_aaccli plugin
      will exit with the level specified. If you chose ok, the message
      will say "ok - .... aaccli is not installed". This is different from
      the "ok - hardware working fine" if aaccli was found.
      The default is to treat a missing aaccli package as UNKNOWN.
   f) Replace PATH_TO_AACCLI with the path where your aaccli binary can
      be found. (default is the aaccli in your $PATH or /sbin/aaccli).

2) "Compile" the plugin with the following command:

	make

    This will produce a "check_aaccli" script. You will also find
    a "check_aaccli.pl" which you better ignore. It is the base for
    the compilation filled with placeholders. These will be replaced during
    the make process.


3) Install the compiled plugin script with the following command:

	make install

   The installation procedure will attempt to place the plugin in a 
   'libexec/' subdirectory in the base directory you specified with
   the --prefix argument to the configure script.


4) Verify that your configuration files for Nagios contains
   the correct paths to the new plugin.


5) Add this lines to /etc/sudoers:
   nagios      ALL=NOPASSWD: /sbin/aaccli controller list
   nagios      ALL=NOPASSWD: /sbin/aaccli open /readonly [a-zA-Z0-9]* : disk show smart /full
   nagios      ALL=NOPASSWD: /sbin/aaccli open /readonly [a-zA-Z0-9]* : container list /full


Command line parameters
-----------------------

-v, --verbose
   Increased verbosity will print how check_aaccli communicates with the
   aaccli daemon and which values were acquired.

-t, --timeout
   The number of seconds after which the plugin will abort.



--
Gerhard Lausser <gerhard.lausser@consol.de>
