[packages/nagios-plugin-check_raid] - here my arcconf reports 'maxCache 3.0 information' so compare in case insensitive way

arekm arekm at pld-linux.org
Wed Feb 1 12:18:22 CET 2017


commit f189a9e65d23ab4001bc8ffd607c791650bf21a3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Feb 1 12:18:15 2017 +0100

    - here my arcconf reports 'maxCache 3.0 information' so compare in case insensitive way

 maxcache.patch                | 11 +++++++++++
 nagios-plugin-check_raid.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/nagios-plugin-check_raid.spec b/nagios-plugin-check_raid.spec
index 700a89f..b902983 100644
--- a/nagios-plugin-check_raid.spec
+++ b/nagios-plugin-check_raid.spec
@@ -10,6 +10,7 @@ License:	GPL v2
 Group:		Applications
 Source0:	https://github.com/glensc/nagios-plugin-check_raid/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	75ad1f75d22ae33996bfb16103c59328
+Patch0:		maxcache.patch
 URL:		https://github.com/glensc/nagios-plugin-check_raid
 BuildRequires:	perl-ExtUtils-MakeMaker-CPANfile
 BuildRequires:	perl-Module-Pluggable >= 5.1
@@ -74,6 +75,7 @@ Supports:
 %prep
 %setup -qc
 mv nagios-plugin-check_raid-*/* .
+%patch0 -p1
 
 %build
 # version check exits with "3", here's explanation:
diff --git a/maxcache.patch b/maxcache.patch
new file mode 100644
index 0000000..5b19009
--- /dev/null
+++ b/maxcache.patch
@@ -0,0 +1,11 @@
+--- a/lib/App/Monitoring/Plugin/CheckRaid/Plugins/arcconf.pm.org	2016-12-26 21:40:17.000000000 +0100
++++ b/lib/App/Monitoring/Plugin/CheckRaid/Plugins/arcconf.pm	2017-02-01 12:15:26.041797097 +0100
+@@ -255,7 +255,7 @@ sub parse_ctrl_config {
+ 				}
+ 			}
+ 
+-		} elsif ($section eq 'MaxCache 3.0 information') {
++		} elsif (lc $section eq 'maxcache 3.0 information') {
+ 			# not parsed yet
+ 		} elsif ($section eq 'Connector information') {
+ 			# not parsed yet
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_raid.git/commitdiff/f189a9e65d23ab4001bc8ffd607c791650bf21a3



More information about the pld-cvs-commit mailing list