Hello community,

here is the log from the commit of package monitoring-plugins-sar-perf for 
openSUSE:Factory checked in at 2020-03-06 21:29:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-sar-perf (Old)
 and      /work/SRC/openSUSE:Factory/.monitoring-plugins-sar-perf.new.26092 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "monitoring-plugins-sar-perf"

Fri Mar  6 21:29:11 2020 rev:7 rq:782144 version:0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-sar-perf/monitoring-plugins-sar-perf.changes
  2019-12-21 12:30:01.731324646 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-sar-perf.new.26092/monitoring-plugins-sar-perf.changes
       2020-03-06 21:33:40.269785774 +0100
@@ -1,0 +2,6 @@
+Fri Feb 28 15:41:17 CET 2020 - r...@suse.de
+
+- check_iostat: add reasons why state is warning or critical
+  to the output 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ monitoring-plugins-sar-perf.spec ++++++
--- /var/tmp/diff_new_pack.Zi5ebD/_old  2020-03-06 21:33:40.669786021 +0100
+++ /var/tmp/diff_new_pack.Zi5ebD/_new  2020-03-06 21:33:40.673786023 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package monitoring-plugins-sar-perf
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++++++ check_iostat ++++++
--- /var/tmp/diff_new_pack.Zi5ebD/_old  2020-03-06 21:33:40.693786035 +0100
+++ /var/tmp/diff_new_pack.Zi5ebD/_new  2020-03-06 21:33:40.693786035 +0100
@@ -171,38 +171,47 @@
 
 my $msg = "OK";
 my $status = 0;
+my @reasons;
 
 # Comparing the result and setting the correct level:
 if ($tps >= $warn_tps || $kbread >= $warn_read || $kbwritten >= $warn_written) 
{
    $msg = "WARNING";
+   push @reasons, "throughput";
    $status = 1;
 }
 
 if ($warn_iowait && $iowait >= $warn_iowait) {
    $msg = "WARNING";
+   push @reasons, "iowait";
    $status = 1;
 }
 
 if ($warn_util && $util >= $warn_util) {
    $msg = "WARNING";
+   push @reasons, "util";
    $status = 1;
 }
 
 if ($tps >= $crit_tps || $kbread >= $crit_read || $kbwritten >= $crit_written) 
{
    $msg = "CRITICAL";
+   push @reasons, "throughput";
    $status = 2;
 }
 
 if ($crit_iowait && $iowait >= $crit_iowait) {
    $msg = "CRITICAL";
+   push @reasons, "iowait";
    $status = 2;
 }
 
 if ($crit_util && $util >= $crit_util) {
    $msg = "CRITICAL";
+   push @reasons, "util";
    $status = 2;
 }
 
+$msg .= " (".join(",",@reasons).")";
+
 my $p_tps = $tps;
 if ($warn_tps) {
    $p_tps .= ";$warn_tps";


Reply via email to