From 8616d124b1cfa0dc4a2645529afc7a7c018da47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Mon, 6 Oct 2014 13:00:14 +0200 Subject: [PATCH] README update --- .git_filters/rcs-keywords.clean | 13 ---- .git_filters/rcs-keywords.smudge | 49 ------------- README | 117 ++++++++++++++++++++++--------- 3 files changed, 82 insertions(+), 97 deletions(-) delete mode 100644 .git_filters/rcs-keywords.clean delete mode 100644 .git_filters/rcs-keywords.smudge diff --git a/.git_filters/rcs-keywords.clean b/.git_filters/rcs-keywords.clean deleted file mode 100644 index 175f972..0000000 --- a/.git_filters/rcs-keywords.clean +++ /dev/null @@ -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\$/; diff --git a/.git_filters/rcs-keywords.smudge b/.git_filters/rcs-keywords.smudge deleted file mode 100644 index e83c166..0000000 --- a/.git_filters/rcs-keywords.smudge +++ /dev/null @@ -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: -# /.gitattributes - *.c filter=rcs-keywords -# /.git_filters/rcs-keywords.smudge - copy this file to 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 () { - 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"; -} diff --git a/README b/README index d979f1a..b90538f 100644 --- a/README +++ b/README @@ -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 \ No newline at end of file