From 77bb1e171ad3a60d9f58b8407d042db98aedcb807b3da80c1bedfc10f2cf2998 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Tue, 14 Nov 2017 16:28:21 +0000 Subject: [PATCH] - check_iostat: pass warning and critical level to perfdata - use iostat fields r/s and w/s for tps calculation OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-sar-perf?expand=0&rev=11 --- check_iostat | 4 ++-- monitoring-plugins-sar-perf.changes | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/check_iostat b/check_iostat index 8a11f77..69b86f0 100644 --- a/check_iostat +++ b/check_iostat @@ -33,7 +33,7 @@ sub VERSION_MESSAGE { sub HELP_MESSAGE { print "\n\tThis plugin shows the I/O usage of the specified disk, using the iostat external program.\n"; print "\tIt prints three statistics: Transactions per second (tps), Kilobytes per second\n"; - print "tread from the disk (KB_read/s) and and written to the disk (KB_written/s)\n\n"; + print "read from the disk (KB_read/s) and and written to the disk (KB_written/s)\n\n"; print "$progname:\n\t-d \t\tDevice to be checked (without the full path, eg. sda)\n"; print "\t\t\t\t(also accepted are device mapper names)\n"; print "\t-c ,,\tSets the CRITICAL level for tps, KB_read/s and KB_written/s, respectively\n"; @@ -121,7 +121,7 @@ while () { $seen_disk++; next if $seen_disk < 2; my (@stats) = split ('\s+', $_); - ($rps,$wps,$kbread,$kbwritten,$util) = @stats[1,2,5,6,13]; + ($rps,$wps,$kbread,$kbwritten,$util) = @stats[3,4,5,6,13]; $tps = $rps + $wps; last; } diff --git a/monitoring-plugins-sar-perf.changes b/monitoring-plugins-sar-perf.changes index 9a76db6..a78ae3d 100644 --- a/monitoring-plugins-sar-perf.changes +++ b/monitoring-plugins-sar-perf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 14 17:27:19 CET 2017 - ro@suse.de + +- check_iostat: pass warning and critical level to perfdata +- use iostat fields r/s and w/s for tps calculation + ------------------------------------------------------------------- Mon Apr 24 12:33:08 CEST 2017 - ro@suse.de