Freewaregruppe Monitoring/Nagios-Plugins
Windows-Plugin: checks the status of 3ware RAID controllers (or LSI Raid controllers)
check_3ware is a Windows plugin for Nagios which checks the status of 3ware RAID controllers (or LSI Raid controllers). The plugin determines the status of Raidsets, Raid-Controllers and of individual discs (S.M.A.R.T), while all stripe sets are supported
The TW Command Line Tool is installed (tw_cli.exe).
Usually you open the script with the path to CLI:
C:> check_3ware.exe path=<path_to_tw_cli>
For debugging purposes, it may also be called with a more detailed output option (this mode is not suitable for continuous operation, but for testing purposes only).
Afterwards it will output the detailed status of the individual components:
C:> check_3ware.exe path=“C:\Program Files\3ware\CLI“ debug
For information on the plugin and its usage you can call it with the help command:
C:> check_3ware.exe help
check_3ware - Revision: 1.5 Copyright (C) 2016 LuftEngineering GmbH Report Bugs to:info@luft-it.de Check_3ware plugin for Nagios. Monitors integrity of a 3ware RAID System with tw_cli.exe Usage: path - Full path to tw_cli.exe (required) args - Arguments for tw_cli.exe (default = '/c0 show all') timeout - Seconds before the plugin times out (default = 15) version - Plugin version help - Show this text debug - Print details. NOT for use with nagios
Preferably the plugin is copied into the script directory where you will store your checks under Windows
When using NSClient ++ an entry in NSC.INI similar to this is generated and pointed to tw_cli:
... [/modules] NRPEServer=enabled CheckExternalScripts=enabled [/settings/NRPE/server] allow arguments=true [/settings/external scripts/scripts] check_3ware=scripts\check_3ware.exe path=“c:\program files\3ware\CLI“ ...
Check 3ware-Controller, if everything is all right: C:> check_3ware path=“C:\Program Files\3ware\CLI“
RAID OK: Ctrl: 9650-8PML - 4 GB RAM – Unit: Vol0 [RAID5] - Status: OK - Disk 0 - Status: OK; Disk 1 - Status: OK; Disk 2 - Status: OK;
2016-04-07
1.6 – Fixed a bug in RegEx Detector
2016-02-04
1.5 – Fixed bug when physical drive is missing
2016-12-01
1.4 – Verifing is not critical anymore
2014-06-07
1.3 – Support for .Net 3.5
2011-18-08
1.2 – Support for systems with more than 1 controller
Several bug fixes, typos, ect.
2011-30-07
1.1 – Minor changes to run with .Net 2.0
2011-24-07
1.0 – First public version
check_3ware is licensed under the GNU General Public License .
Joachim Luft will answer your questions to this plugin and is happy about your donation.