From d7a583cfc0bb587d12fa71e34ca0ca93ee19cd4f1040b9918cad72a7893f55ff Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Tue, 10 Apr 2018 09:09:24 +0000 Subject: [PATCH] - check_iostat: fix to work with iostat on sle15 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=14 --- check_iostat | 2 +- monitoring-plugins-sar-perf.changes | 5 +++++ monitoring-plugins-sar-perf.spec | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/check_iostat b/check_iostat index 9cf0894..91ed025 100644 --- a/check_iostat +++ b/check_iostat @@ -122,7 +122,7 @@ while () { $iowait = $stats[4]; next; } - if (/^Device:/) { + if (/^Device/) { my @hdrs = split('\s+', $_); my ($search_rps) = grep { $hdrs[$_] eq "r/s" } 0..$#hdrs; $field_rps = $search_rps if $search_rps; diff --git a/monitoring-plugins-sar-perf.changes b/monitoring-plugins-sar-perf.changes index 8c3a5a5..792b1fe 100644 --- a/monitoring-plugins-sar-perf.changes +++ b/monitoring-plugins-sar-perf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 10 11:08:51 CEST 2018 - ro@suse.de + +- check_iostat: fix to work with iostat on sle15 + ------------------------------------------------------------------- Wed Nov 15 12:52:11 CET 2017 - ro@suse.de diff --git a/monitoring-plugins-sar-perf.spec b/monitoring-plugins-sar-perf.spec index 60efd3c..3924e25 100644 --- a/monitoring-plugins-sar-perf.spec +++ b/monitoring-plugins-sar-perf.spec @@ -1,7 +1,7 @@ # # spec file for package monitoring-plugins-sar-perf # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed