- 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
This commit is contained in:
Ruediger Oertel 2018-04-10 09:09:24 +00:00 committed by Git OBS Bridge
parent 315c48ab46
commit d7a583cfc0
3 changed files with 7 additions and 2 deletions

View File

@ -122,7 +122,7 @@ while (<IOSTAT>) {
$iowait = $stats[4]; $iowait = $stats[4];
next; next;
} }
if (/^Device:/) { if (/^Device/) {
my @hdrs = split('\s+', $_); my @hdrs = split('\s+', $_);
my ($search_rps) = grep { $hdrs[$_] eq "r/s" } 0..$#hdrs; my ($search_rps) = grep { $hdrs[$_] eq "r/s" } 0..$#hdrs;
$field_rps = $search_rps if $search_rps; $field_rps = $search_rps if $search_rps;

View File

@ -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 Wed Nov 15 12:52:11 CET 2017 - ro@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package monitoring-plugins-sar-perf # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed