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