[packages/nagios-plugin-check_megaraid_sas] Do not report JBOD disks as failed
jajcus
jajcus at pld-linux.org
Fri Jun 21 11:05:22 CEST 2013
commit d77909f79b42cf357163bbc7497a2182a40a7ea9
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Fri Jun 21 11:05:04 2013 +0200
Do not report JBOD disks as failed
check_megaraid_sas-JBOD.patch | 12 ++++++++++++
nagios-plugin-check_megaraid_sas.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugin-check_megaraid_sas.spec b/nagios-plugin-check_megaraid_sas.spec
index 1a8e83f..ab2bbed 100644
--- a/nagios-plugin-check_megaraid_sas.spec
+++ b/nagios-plugin-check_megaraid_sas.spec
@@ -3,13 +3,14 @@ Summary: Nagios plugin to check the state of disk and logical drives attached to
Name: nagios-plugin-%{plugin}
# revision from download page
Version: 12
-Release: 4
+Release: 5
License: GPL v2
Group: Networking
# http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=680&cf_id=24
Source0: check_megaraid_sas
Patch0: bbu.patch
Patch1: check_megaraid_sas-size.patch
+Patch2: check_megaraid_sas-JBOD.patch
URL: http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/RAID-Controllers/check_megaraid_sas/details
Requires: megacli-sas
Requires: nagios-core
@@ -36,6 +37,7 @@ install %{SOURCE0} %{plugin}
%patch0 -p0
%patch1 -p1
+%patch2 -p1
cat > nagios.cfg <<'EOF'
# Usage:
diff --git a/check_megaraid_sas-JBOD.patch b/check_megaraid_sas-JBOD.patch
new file mode 100644
index 0000000..93e6172
--- /dev/null
+++ b/check_megaraid_sas-JBOD.patch
@@ -0,0 +1,12 @@
+diff -dur nagios-plugin-check_megaraid_sas-12.orig/check_megaraid_sas nagios-plugin-check_megaraid_sas-12/check_megaraid_sas
+--- nagios-plugin-check_megaraid_sas-12.orig/check_megaraid_sas 2013-06-21 10:58:28.000000000 +0200
++++ nagios-plugin-check_megaraid_sas-12/check_megaraid_sas 2013-06-21 11:04:40.000000000 +0200
+@@ -251,6 +251,8 @@
+ $hotsparecount++;
+ } elsif ( $fwstate eq 'Online' ) {
+ # Do nothing
++ } elsif ( $fwstate eq 'JBOD' ) {
++ # Do nothing
+ } elsif ( $fwstate eq 'Unconfigured' ) {
+ # A drive not in anything, or a non drive device
+ $pdcount--;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_megaraid_sas.git/commitdiff/d77909f79b42cf357163bbc7497a2182a40a7ea9
More information about the pld-cvs-commit
mailing list