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