]> git.pld-linux.org Git - packages/nagios-plugin-check_raid.git/commitdiff
- here my arcconf reports 'maxCache 3.0 information' so compare in case insensitive way auto/th/nagios-plugin-check_raid-4.0.5-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 1 Feb 2017 11:18:15 +0000 (12:18 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 1 Feb 2017 11:18:15 +0000 (12:18 +0100)
maxcache.patch [new file with mode: 0644]
nagios-plugin-check_raid.spec

diff --git a/maxcache.patch b/maxcache.patch
new file mode 100644 (file)
index 0000000..5b19009
--- /dev/null
@@ -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
index 700a89f31133b2860b5801bba308beda12c039b4..b90298328330a4dc1d8894d23eb3640303819850 100644 (file)
@@ -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:
This page took 0.645329 seconds and 4 git commands to generate.