Hello community,

here is the log from the commit of package monitoring-plugins-sar-perf for 
openSUSE:Factory checked in at 2020-03-20 23:58:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-sar-perf (Old)
 and      /work/SRC/openSUSE:Factory/.monitoring-plugins-sar-perf.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "monitoring-plugins-sar-perf"

Fri Mar 20 23:58:33 2020 rev:8 rq:786621 version:0.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-sar-perf/monitoring-plugins-sar-perf.changes
  2020-03-06 21:33:40.269785774 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-sar-perf.new.3160/monitoring-plugins-sar-perf.changes
        2020-03-21 00:02:30.273135631 +0100
@@ -1,0 +2,6 @@
+Fri Mar 13 00:42:48 CET 2020 - r...@suse.de
+
+- update apparmor profile usr.lib.nagios.plugins.check_iostat
+  to allow reading / and /proc/$pid/mountinfo 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ check_iostat ++++++
--- /var/tmp/diff_new_pack.577m1Q/_old  2020-03-21 00:02:31.285136185 +0100
+++ /var/tmp/diff_new_pack.577m1Q/_new  2020-03-21 00:02:31.285136185 +0100
@@ -171,46 +171,46 @@
 
 my $msg = "OK";
 my $status = 0;
-my @reasons;
+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";
+   $reasons{'throughput'} = 1;
    $status = 1;
 }
 
 if ($warn_iowait && $iowait >= $warn_iowait) {
    $msg = "WARNING";
-   push @reasons, "iowait";
+   $reasons{'iowait'} = 1;
    $status = 1;
 }
 
 if ($warn_util && $util >= $warn_util) {
    $msg = "WARNING";
-   push @reasons, "util";
+   $reasons{'util'} = 1;
    $status = 1;
 }
 
 if ($tps >= $crit_tps || $kbread >= $crit_read || $kbwritten >= $crit_written) 
{
    $msg = "CRITICAL";
-   push @reasons, "throughput";
+   $reasons{'throughput'} = 2;
    $status = 2;
 }
 
 if ($crit_iowait && $iowait >= $crit_iowait) {
    $msg = "CRITICAL";
-   push @reasons, "iowait";
+   $reasons{'iowait'} = 2;
    $status = 2;
 }
 
 if ($crit_util && $util >= $crit_util) {
    $msg = "CRITICAL";
-   push @reasons, "util";
+   $reasons{'util'} = 2;
    $status = 2;
 }
 
-$msg .= " (".join(",",@reasons).")";
+$msg .= " (".join(",",keys(%reasons)).")" if $status != 0;
 
 my $p_tps = $tps;
 if ($warn_tps) {

++++++ usr.lib.nagios.plugins.check_iostat ++++++
--- /var/tmp/diff_new_pack.577m1Q/_old  2020-03-21 00:02:31.301136195 +0100
+++ /var/tmp/diff_new_pack.577m1Q/_new  2020-03-21 00:02:31.305136196 +0100
@@ -10,8 +10,10 @@
    /sys/devices/system/cpu/ r,
    /proc/meminfo r,
    @{PROC}/[0-9]*/mounts r,
+   @{PROC}/[0-9]*/mountinfo r,
    /proc/diskstats r,
    /proc/uptime r,
+   / r,
    /etc/sysstat/sysstat.ioconf r,
 }
 


Reply via email to