From 9574f111c798312859431a2271227f6c8a2bb04b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Mon, 28 Oct 2013 12:48:31 +0100 Subject: [PATCH] Add changelog and update version --- changelog | 12 ++++ check_lsi_raid | 2 +- check_lsi_raid.html | 167 -------------------------------------------- 3 files changed, 13 insertions(+), 168 deletions(-) create mode 100644 changelog delete mode 100644 check_lsi_raid.html diff --git a/changelog b/changelog new file mode 100644 index 0000000..3b10001 --- /dev/null +++ b/changelog @@ -0,0 +1,12 @@ +############################################################################### +Changelog for check_lsi_raid, a Nagios/Icinga plugin to check LSI RAID +controllers +############################################################################### + +Version 1.0 20131028 + * First stable release. Improved testing with reading output from simple text + files. + * Check status of BBU and CacheVault + * Fix storcli path checking + * Fix rebuild progress for physical devices + * Fix temperature check for a real integer diff --git a/check_lsi_raid b/check_lsi_raid index f7466ed..a701954 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -30,7 +30,7 @@ use warnings; use Getopt::Long qw(:config no_ignore_case); our $VERBOSITY = 0; -our $VERSION = "0.3"; +our $VERSION = "1.0"; our $NAME = "check_lsi_raid: Nagios/Icinga plugin to check LSI Raid Controller status"; our $C_TEMP_WARNING = 60; our $C_TEMP_CRITICAL = 65; diff --git a/check_lsi_raid.html b/check_lsi_raid.html deleted file mode 100644 index dbec034..0000000 --- a/check_lsi_raid.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - - - - -

NAME

- -

check_lsi_raid - Nagios/Icinga Plugin to check LSI raid-controllers.

- -

SYNOPSIS

- -

Example:

- -
        ./check_lsi_raid -Tw 40 -Tc 50 -LD 0,1 -PD 1 -b 0
-        LSIRAID OK (Ctrl #0)
- -

VERSION

- -

This document describes check_lsi_raid version 0.3.

- -

DESCRIPTION

- -

check_lsi_raid is a Nagios/Icinga Plugin to check LSI raid-controllers for errors/warnings. This plugin makes heavy use of StorCLI which can be obtained from the LSI homepage. It checks the controller, the physical devices and the logical devices seperately for errors or warnings (for more detailed information about what is beeing monitored see METHODS).

- -

DEPENDENCIES

- -
        - This plugin requires a running Nagios or Icinga (either local or NRPE).
-        - sudo
-        - storcli/storcli64 (Can be obtained from the LSI homepage)
-        - The following Perl Modules:
-        
-        use strict;
-        use warnings;
-        use Getopt::Long qw(:config no_ignore_case);
-        use Switch 'Perl6';
-
- -

METHODS

- -

getExitState

- -

Returns the correct exit code after each test. Can only increment the exit-code (if necessary) since the exit-code may not change from Warning to OK.

- -

displayUsage

- -

Explains the usage of the plugin and which parameters are available.

- -

displayHelp

- -

Prints a short help text and quick information where to find additional help.

- -

displayVersion

- -

Prints the plugin version and the StorCLI version.

- -

getControllerStatus

- -

Checks the LSI raid-controller for controller errors (uses storcli /c[num] show all).

- -
        - Overall status
-        - Reboot necessary?
-        - Booted in safe mode?
-        - Memory errors
-        - Failed to get lock key?
-        - Rollback operation in progress?
-        - Temperature of controller and/or ROC (if present)
- -

The controller/ROC temperature can be set to a warning (parameter: -Tw|--temperature-warn) and a critical level (parameter: -Tc|--temperature-critical). See getThresholds for more information.

- -

getLogicalDeviceStatus

- -

Returns information about logical devices:

- -
        - General logical devices status
-
-        - Initialization in progress?
- -

getPhysDeviceStatus

- -

Returns information about physical devices attached to the LSI raid-controller:

- -
        - Disk status
-        - Several error counts
-        - Device temperature
-        - Predictive fail count
-        - S.M.A.R.T. status
- -

The device temperature can be set to a warning (parameter: -PDTw|--physicaldevicetemperature-warn) and a critical level (parameter: -PDTc|--physicaldevicetemperature-critical). See getThresholds for more information.

- -

getBBUStatus

- -

Returns information about the battery backup unit (BBU) status.

- -
        - Overall status
-        - Temperature status
-        - Bad voltage
-        - Learn cycle status
-        - I2C errors
-        - Capacity
- -

getThresholds

- -

Uses the -Tw|--temperature-warn and -Tc|--temperature-critical parameters and parses them. Uses correct Nagios Threshold implementation: http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT Returns a temperature range (array) in or out which a temperature should be. Array content: ("in" or "out", range from, range to).

- -

Examples

- -
        Generate an alert if x...
-        -Tw 10          < 0 or > 10, (outside the range of {0 .. 10})
-        -Tw 10:         < 10, (outside {10 .. inf})
-        -Tw ~:10        > 10, (outside the range of {-inf .. 10})
-        -Tw 10:20       < 10 or > 20, (outside the range of {10 .. 20})
-        -Tw @10:20      >= 10 and <= 20, (inside the range of {10 .. 20})
-
- -

LICENSE AND COPYRIGHT

- -

Copyright (c) 2013, Martin Grubhofer <mgrubhofer@thomas-krenn.com>, <s1110239013@students.fh-hagenberg.at>, Scheipner Alexander <s1110239032@students.fh-hagenberg.at>, Werner Sebastian <s1110239038@students.fh-hagenberg.at>. All rights reserved.

- -

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

- -

DISCLAIMER OF WARRANTY

- -

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

- -

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

- - - - - - -