README update

This commit is contained in:
Georg Schönberger
2014-10-06 13:00:14 +02:00
parent cf86545309
commit 8616d124b1
3 changed files with 82 additions and 97 deletions

View File

@@ -1,13 +0,0 @@
#!/usr/bin/perl -p
#
# @brief Git filter to implement rcs keyword expansion as seen in cvs and svn.
# @author Martin Turon
#
# Copyright (c) 2009-2011 Turon Technologies, Inc. All rights reserved.
s/\$Id[^\$]*\$/\$Id\$/;
s/\$Date[^\$]*\$/\$Date\$/;
s/\$Author[^\$]*\$/\$Author\$/;
s/\$Source[^\$]*\$/\$Source\$/;
s/\$File[^\$]*\$/\$File\$/;
s/\$Revision[^\$]*\$/\$Revision\$/;

View File

@@ -1,49 +0,0 @@
#!/usr/bin/perl
#
# @brief Git filter to implement rcs keyword expansion as seen in cvs and svn.
# @author Martin Turon
#
# Usage:
# .git_filter/rcs-keywords.smudge file_path < file_contents
#
# To add keyword expansion:
# <project>/.gitattributes - *.c filter=rcs-keywords
# <project>/.git_filters/rcs-keywords.smudge - copy this file to project
# <project>/.git_filters/rcs-keywords.clean - copy companion to project
# ~/.gitconfig - add [filter] lines below
#
# [filter "rcs-keywords"]
# clean = .git_filters/rcs-keywords.clean
# smudge = .git_filters/rcs-keywords.smudge %f
#
# Copyright (c) 2009-2011 Turon Technologies, Inc. All rights reserved.
$path = shift;
$path =~ /.*\/(.*)/;
$filename = $1;
if (0 == length($filename)) {
$filename = $path;
}
# Need to grab filename and to use git log for this to be accurate.
$rev = `git log -- $path | head -n 3`;
$rev =~ /^Author:\s*(.*)\s*$/m;
$author = $1;
$author =~ /\s*(.*)\s*<.*/;
$name = $1;
$rev =~ /^Date:\s*(.*)\s*$/m;
$date = $1;
$rev =~ /^commit (.*)$/m;
$ident = $1;
while (<STDIN>) {
s/\$Date[^\$]*\$/\$Date: $date \$/;
s/\$Author[^\$]*\$/\$Author: $author \$/;
s/\$Id[^\$]*\$/\$Id: $filename | $date | $name \$/;
s/\$File[^\$]*\$/\$File: $filename \$/;
s/\$Source[^\$]*\$/\$Source: $path \$/;
s/\$Revision[^\$]*\$/\$Revision: $ident \$/;
} continue {
print or die "-p destination: $!\n";
}

117
README
View File

@@ -20,55 +20,102 @@
General:
--------
o The LSI RAID Monitoring Plugin is a Nagios/Icinga to check the LSI RAID
Controller for warnings or critical errors.
o It is written in Perl and uses the Storage Command Line Tool ("Storcli")
to interact with the RAID Controller.
* The LSI RAID Monitoring Plugin is a Nagios/Icinga to check the LSI RAID
Controller for warnings or critical errors.
* It is written in Perl and uses the Storage Command Line Tool ("storcli")
interact with the RAID Controller.
Mailing List:
-------------
o tk-monitoring-plugins-user@lists.thomas-krenn.com
o Archive:
+ http://lists.thomas-krenn.com/pipermail/tk-monitoring-plugins-user/
* tk-monitoring-plugins-user@lists.thomas-krenn.com
* Archive:
http://lists.thomas-krenn.com/pipermail/tk-monitoring-plugins-user/
Current Version:
----------------
o The current version of the check_lsi_raid plugin is available at the
Thomas Krenn git-server:
o http://git.thomas-krenn.com/check_lsi_raid.git
* The current version of the check_lsi_raid plugin is available at the
Thomas Krenn git-server:
* http://git.thomas-krenn.com/check_lsi_raid.git
Further information:
--------------------
o A wiki article can be found at:
+ http://www.thomas-krenn.com/de/wiki/LSI_RAID_Monitoring_Plugin or
+ http://www.thomas-krenn.com/en/wiki/LSI_RAID_Monitoring_Plugin
o Windows user should read:
+ http://www.thomas-krenn.com/de/wiki/LSI_RAID_Monitoring_Plugin_unter_Windows_Server_2012_einrichten
* A wiki article can be found at:
http://www.thomas-krenn.com/de/wiki/LSI_RAID_Monitoring_Plugin or
http://www.thomas-krenn.com/en/wiki/LSI_RAID_Monitoring_Plugin
* Windows user should read:
http://www.thomas-krenn.com/de/wiki/LSI_RAID_Monitoring_Plugin_unter_Windows_Server_2012_einrichten
Functionalities:
----------------
o Checks the Controller Status,
o Physical Device Status,
o Logical Device Status and
o BBU Status
* Controller Status
** ROC temperature
** Degraded drives
** Offline drives
** Critical disks
** Failed Disks
** Memory correctable errors
** Memory uncorrectable errors
* Logical Device Status
** State
** Consistency
** Initialization
* Physical Device Status
** State
** Shield counter
** Media, Other, BBM, Predictive error counts
** SMART alert flag
** Drive temperature
** Initialization
** Rebuild
* If BBU or CV is present (unless disabled)
* BBU
** Battery State
** Temperature
** Firmware temperature
** Voltage
** I2C errors
** Replacement required
** Capacity low
** Is about to fail
** GasGauge discharged
** GasGauge over temperature
** GasGauge over charged
* CV
** State
** Temperature
** Replacement required
Installation:
-------------
* libfile-which-perl
Used storcli commands:
----------------------
* storcli /c0 /bbu show
* storcli /c0 /bbu show status
* storcli /c0 /cv show
* storcli /c0 /cv show status
* storcli adpallinfo a0
* storcli /c0 show time
* storcli /c0/vall show all
* storcli /c0/vall show init
* storcli /c0/eall/sall
* storcli /c0/eall/sall
* storcli /c0/eall/sall
Requirements:
-------------
o On the system to be monitored:
+ check_lsi_raid plugin
+ storcli
+ sudoers entry for user nagios and storcli
(example: nagios ALL=(root) NOPASSWD:/usr/sbin/storcli)
+ NRPE (optional): command definition
o On the Icinga-server:
+ command definition
+ service definition
Installation Requirements:
--------------------------
* libfile-which-perl
* storcli
Requirements:
-------------
* On the system to be monitored:
** check_lsi_raid plugin
** storcli
** sudoers entry for user nagios and storcli
(example: nagios ALL=(root) NOPASSWD:/usr/sbin/storcli)
* NRPE (optional): command definition
* On the Icinga-server:
** command definition
** service definition
Parameter usage (example):
--------------------------
o ./check_lsi_raid -Tw 40 -Tc 50 -LD 0,1 -PD 1 -b 0
o LSIRAID OK (Ctrl #0)
* ./check_lsi_raid -Tw 40 -Tc 50 -LD 0,1 -PD 1 -b 0