[Pkg-nagios-changes] [pkg-nagios-plugins-contrib] 02/07: check_raid: fix failed mdadm hotspare detection.

Bernd Zeimetz bernd at bzed.de
Wed Feb 22 13:21:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

bzed pushed a commit to branch master
in repository pkg-nagios-plugins-contrib.

commit 5bdff510976d6d93034450fa5bd83709e51f56d3
Author: Bernd Zeimetz <bernd at bzed.de>
Date:   Wed Feb 15 22:18:50 2017 +0100

    check_raid: fix failed mdadm hotspare detection.
    
    Closes: #855054
    Thanks: Sascha Steinbiss
---
 .../patches/check_raid/fix_mdadm_hotspare_failure_detection   | 11 +++++++++++
 debian/patches/series                                         |  1 +
 2 files changed, 12 insertions(+)

diff --git a/debian/patches/check_raid/fix_mdadm_hotspare_failure_detection b/debian/patches/check_raid/fix_mdadm_hotspare_failure_detection
new file mode 100644
index 0000000..c81437a
--- /dev/null
+++ b/debian/patches/check_raid/fix_mdadm_hotspare_failure_detection
@@ -0,0 +1,11 @@
+--- a/check_raid/check_raid
++++ b/check_raid/check_raid
+@@ -3661,7 +3661,7 @@ $fatpacked{"App/Monitoring/Plugin/CheckR
+   		} elsif (@fd > 0) {
+   			# FIXME: this is same as above?
+   			$this->warning;
+-  			$s .= "hot-spare failure:". join(",", @{$md{failed_disks}}) .":$md{status}";
++			$s .= "hot-spare failure:". join(",", @fd) .":$md{status}";
+   
+   		} else {
+   			$s .= "$md{status}";
diff --git a/debian/patches/series b/debian/patches/series
index 6ac3764..af41935 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -51,3 +51,4 @@ check_nfsmounts/nfs4_support
 check_httpd_status/htdigest_auth
 check_varnish/fix_for_v5
 check_raid/no_epn
+check_raid/fix_mdadm_hotspare_failure_detection

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins-contrib.git



More information about the Pkg-nagios-changes mailing list