Adaptec RAID Monitoring Plugin for Windows Server 2012 set-up
This article describes how an Adaptec-Raid-Controller for Windows with Icinga/Nagios Adaptec RAID Monitoring Plugin check_adaptec_raid can be monitored. In the following example a 64bit Windows Server 2012 is used, but the instructions can be applied analogously to other versions of Windows.
The following software components are required on the Windows system:
- nsclient++: NSClient++ for Windows installed and configured
- arcconf: arcconf storage manager
- Strawberry Perl: Installing Strawberry Perl in Windows
- check_adaptec_raid Plugin: Adaptec RAID Monitoring Plugin
Install nsclient++ as described in NSClient++ for Windows installed and configured. The Option Allow users to write config file facilitated the later configuration of NRPE.
Start nsclient++ in Test mode and test the connection from the Icinga-Server (see Nsclient++, section Plugins Testing).
Install Perl as described in the article Installing Strawberry Perl in Windows.
Download the Command-line Tool arcconf storage manager arcconf and place the files arcconf.exe, afaapi.dll and storarc.dll in a directory. To avoid path errors, use a path without spaces and special characters.
After the installation steps described above have been completed, add the following lines to the C:\Program Files\NSClient++\nsclient.ini:
; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options. [/settings/NRPE/server] ; COMMAND ARGUMENT PROCESSING - This option determines whether or not we will allow clients to specify arguments to commands that are executed. allow arguments = true ; Section for external scripts configuration options (CheckExternalScripts). [/settings/external scripts] ; COMMAND ARGUMENT PROCESSING - This option determines whether or not we will allow clients to specify arguments to commands that are executed. allow arguments = true [/settings/external scripts/scripts] check_adaptec_raid=C:\\strawberry\\perl\\bin\\perl.exe C:\\Programme\\Adaptec\\check_adaptec_raid -C 1 -p C:\\Programme\\Adaptec\\arcconf.exe
The path of /settings/external scripts/scripts are similar to those at check_adaptec_raid and arcconf.exe.
Testing by the Icinga-Server
The plugin check_nrpe calls on Windows-Server check_adaptec_raid for NRPE:
:~$ /usr/lib/nagios/plugins/check_nrpe -H 10.1.102.142 -c check_adaptec_raid AACRAID CRITICAL (Ctrl #1): [Ctrl. temp. critical, Log. device failed/degraded, Log. device critical, 1 log. device(s) failed]
Author: Georg Schönberger