Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package monitoring-plugins-nwc_health for 
openSUSE:Factory checked in at 2022-08-08 11:43:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health (Old)
 and      /work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1521 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "monitoring-plugins-nwc_health"

Mon Aug  8 11:43:01 2022 rev:21 rq:993704 version:10.2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health/monitoring-plugins-nwc_health.changes
      2022-05-07 23:54:28.160921612 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1521/monitoring-plugins-nwc_health.changes
    2022-08-08 11:43:03.462412024 +0200
@@ -1,0 +2,6 @@
+Mon Jul 25 06:29:36 UTC 2022 - Martin Hauke <mar...@gmx.de>
+
+- Update to version 10.2.1
+  * update glplugin, better get_table fallback handling
+
+-------------------------------------------------------------------

Old:
----
  check_nwc_health-10.1.0.3.tar.gz

New:
----
  check_nwc_health-10.2.1.tar.gz

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

Other differences:
------------------
++++++ monitoring-plugins-nwc_health.spec ++++++
--- /var/tmp/diff_new_pack.nkVofJ/_old  2022-08-08 11:43:04.154412960 +0200
+++ /var/tmp/diff_new_pack.nkVofJ/_new  2022-08-08 11:43:04.158412966 +0200
@@ -19,7 +19,7 @@
 
 %define         realname check_nwc_health
 Name:           monitoring-plugins-nwc_health
-Version:        10.1.0.3
+Version:        10.2.1
 Release:        0
 Summary:        This plugin checks the health of network components and 
interfaces
 # https://github.com/lausser/check_nwc_health

++++++ check_nwc_health-10.1.0.3.tar.gz -> check_nwc_health-10.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check_nwc_health-10.1.0.3/ChangeLog 
new/check_nwc_health-10.2.1/ChangeLog
--- old/check_nwc_health-10.1.0.3/ChangeLog     2022-05-05 08:53:37.584561200 
+0200
+++ new/check_nwc_health-10.2.1/ChangeLog       2022-07-21 11:55:02.632291100 
+0200
@@ -1,3 +1,7 @@
+* 2022-07-21 10.2.1
+  increase cpu thresholds for linux, separate user/system/etc from iowait
+* 2022-07-20 10.2
+  update glplugin, better get_table fallback handling
 * 2022-05-05 10.1.0.3
   fix a pull-request. Und das war damit auch der letzte Pull-Request, den ich 
in meinem Leben angenommen habe.
 * 2022-05-04 10.1.0.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check_nwc_health-10.1.0.3/GLPlugin/lib/Monitoring/GLPlugin/SNMP.pm 
new/check_nwc_health-10.2.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP.pm
--- old/check_nwc_health-10.1.0.3/GLPlugin/lib/Monitoring/GLPlugin/SNMP.pm      
2022-05-05 08:53:38.254561200 +0200
+++ new/check_nwc_health-10.2.1/GLPlugin/lib/Monitoring/GLPlugin/SNMP.pm        
2022-07-21 11:55:03.212291100 +0200
@@ -2474,6 +2474,7 @@
     if (! defined $result || (defined $result && ! %{$result})) {
       $self->debug(sprintf "get_table error: %s", 
           $Monitoring::GLPlugin::SNMP::session->error());
+      my $fallback = 0;
       if ($Monitoring::GLPlugin::SNMP::session->error() =~ /message size 
exceeded.*buffer maxMsgSize/i) {
         # bei irrsinnigen maxrepetitions
         $self->debug(sprintf "buffer exceeded");
@@ -2485,12 +2486,24 @@
         } else {
           $self->mult_snmp_max_msg_size(2);
         }
+        $fallback = 1;
+      } elsif ($Monitoring::GLPlugin::SNMP::session->error() =~ /No response 
from remote host/i) {
+        # some agents can not handle big loads
+        if ($params{'-maxrepetitions'}) {
+          $params{'-maxrepetitions'} = int($params{'-maxrepetitions'} / 2);
+          $self->debug(sprintf "reduce maxrepetitions to %d",
+              $params{'-maxrepetitions'});
+          $fallback = 1;
+        }
+      }
+      if ($fallback) {
+        $self->debug("get_table error: try fallback");
+        $self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
+        $tic = time;
+        $result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
+        $tac = time;
+        $self->debug(sprintf "get_table returned %d oids in %ds", scalar(keys 
%{$result}), $tac - $tic);
       }
-      $self->debug("get_table error: try fallback");
-      $self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
-      $result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
-      $tac = time;
-      $self->debug(sprintf "get_table returned %d oids in %ds", scalar(keys 
%{$result}), $tac - $tic);
       if (! defined $result || ! %{$result}) {
         $self->debug(sprintf "get_table error: %s", 
             $Monitoring::GLPlugin::SNMP::session->error());
@@ -2498,6 +2511,7 @@
           $params{'-maxrepetitions'} = 1;
           $self->debug("get_table error: try getnext fallback");
           $self->debug(sprintf "get_table %s", Data::Dumper::Dumper(\%params));
+          $tic = time;
           $result = $Monitoring::GLPlugin::SNMP::session->get_table(%params);
           $tac = time;
           $self->debug(sprintf "get_table returned %d oids in %ds", 
scalar(keys %{$result}), $tac - $tic);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check_nwc_health-10.1.0.3/GLPlugin/lib/Monitoring/GLPlugin.pm 
new/check_nwc_health-10.2.1/GLPlugin/lib/Monitoring/GLPlugin.pm
--- old/check_nwc_health-10.1.0.3/GLPlugin/lib/Monitoring/GLPlugin.pm   
2022-05-05 08:53:38.024561200 +0200
+++ new/check_nwc_health-10.2.1/GLPlugin/lib/Monitoring/GLPlugin.pm     
2022-07-21 11:55:03.012291100 +0200
@@ -22,7 +22,7 @@
   $Data::Dumper::Sparseseen = 1;
 };
 our $AUTOLOAD;
-*VERSION = \'5.0.3';
+*VERSION = \'5.1';
 
 use constant { OK => 0, WARNING => 1, CRITICAL => 2, UNKNOWN => 3 };
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check_nwc_health-10.1.0.3/configure 
new/check_nwc_health-10.2.1/configure
--- old/check_nwc_health-10.1.0.3/configure     2022-05-05 08:53:34.814561200 
+0200
+++ new/check_nwc_health-10.2.1/configure       2022-07-21 11:52:36.792291100 
+0200
@@ -1,7 +1,7 @@
 #! /bin/sh
 # From configure.ac .
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for check_nwc_health 10.1.0.3.
+# Generated by GNU Autoconf 2.69 for check_nwc_health 10.2.1.
 #
 #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -577,8 +577,8 @@
 # Identity of this package.
 PACKAGE_NAME='check_nwc_health'
 PACKAGE_TARNAME='check_nwc_health'
-PACKAGE_VERSION='10.1.0.3'
-PACKAGE_STRING='check_nwc_health 10.1.0.3'
+PACKAGE_VERSION='10.2.1'
+PACKAGE_STRING='check_nwc_health 10.2.1'
 PACKAGE_BUGREPORT=''
 PACKAGE_URL=''
 
@@ -1236,7 +1236,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures check_nwc_health 10.1.0.3 to adapt to many kinds of 
systems.
+\`configure' configures check_nwc_health 10.2.1 to adapt to many kinds of 
systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1308,7 +1308,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of check_nwc_health 10.1.0.3:";;
+     short | recursive ) echo "Configuration of check_nwc_health 10.2.1:";;
    esac
   cat <<\_ACEOF
 
@@ -1393,7 +1393,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-check_nwc_health configure 10.1.0.3
+check_nwc_health configure 10.2.1
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1410,7 +1410,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by check_nwc_health $as_me 10.1.0.3, which was
+It was created by check_nwc_health $as_me 10.2.1, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2273,7 +2273,7 @@
 
 # Define the identity of the package.
  PACKAGE='check_nwc_health'
- VERSION='10.1.0.3'
+ VERSION='10.2.1'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3324,7 +3324,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by check_nwc_health $as_me 10.1.0.3, which was
+This file was extended by check_nwc_health $as_me 10.2.1, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -3377,7 +3377,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-check_nwc_health config.status 10.1.0.3
+check_nwc_health config.status 10.2.1
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/check_nwc_health-10.1.0.3/configure.ac 
new/check_nwc_health-10.2.1/configure.ac
--- old/check_nwc_health-10.1.0.3/configure.ac  2022-05-05 08:53:37.584561200 
+0200
+++ new/check_nwc_health-10.2.1/configure.ac    2022-07-21 11:55:02.632291100 
+0200
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_REVISION ($Revision: 1.150 $)
 AC_PREREQ(2.58)
-AC_INIT(check_nwc_health,10.1.0.3)
+AC_INIT(check_nwc_health,10.2.1)
 AM_INIT_AUTOMAKE([1.9 tar-pax])
 AM_MAINTAINER_MODE([disable])
 AC_CANONICAL_HOST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/Device.pm 
new/check_nwc_health-10.2.1/plugins-scripts/Classes/Device.pm
--- old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/Device.pm     
2022-05-05 08:53:38.014561200 +0200
+++ new/check_nwc_health-10.2.1/plugins-scripts/Classes/Device.pm       
2022-07-21 11:55:03.002291100 +0200
@@ -150,6 +150,8 @@
         $self->rebless('Classes::Huawei');
       } elsif ($self->{sysobjectid} =~ /1\.3\.6\.1\.4\.1\.2011\.2\./) {
         $self->rebless('Classes::Huawei');
+      } elsif ($self->implements_mib('ARUBAWIRED-CHASSIS-MIB')) {
+        $self->rebless('Classes::HP::Aruba');
       } elsif ($self->{productname} =~ /Procurve/i ||
           ($self->implements_mib('HP-ICF-CHASSIS') &&
           $self->implements_mib('NETSWITCH-MIB'))) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/HP/Aruba/Component/PowersupplySubsystem.pm
 
new/check_nwc_health-10.2.1/plugins-scripts/Classes/HP/Aruba/Component/PowersupplySubsystem.pm
--- 
old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/HP/Aruba/Component/PowersupplySubsystem.pm
    2022-05-05 08:53:37.764561200 +0200
+++ 
new/check_nwc_health-10.2.1/plugins-scripts/Classes/HP/Aruba/Component/PowersupplySubsystem.pm
      2022-07-21 11:55:02.782291100 +0200
@@ -7,6 +7,9 @@
   $self->get_snmp_tables('ARUBAWIRED-POWERSUPPLY-MIB', [
       ['powersupplies', 'arubaWiredPowerSupplyTable', 
'Classes::HP::Aruba::Component::PowersupplySubsystem::Powersupply'],
   ]);
+  $self->get_snmp_tables('ENTITY-MIBx', [
+      ['powersupplies2', 'entPhysicalTable', 
'Monitoring::GLPlugin::SNMP::TableItem'],
+  ]);
 }
 
 package Classes::HP::Aruba::Component::PowersupplySubsystem::Powersupply;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/UCDMIB/Components/CpuSubsystem.pm
 
new/check_nwc_health-10.2.1/plugins-scripts/Classes/UCDMIB/Components/CpuSubsystem.pm
--- 
old/check_nwc_health-10.1.0.3/plugins-scripts/Classes/UCDMIB/Components/CpuSubsystem.pm
     2022-05-05 08:53:37.754561200 +0200
+++ 
new/check_nwc_health-10.2.1/plugins-scripts/Classes/UCDMIB/Components/CpuSubsystem.pm
       2022-07-21 11:55:02.772291100 +0200
@@ -63,8 +63,8 @@
          $self->{$key});
       $self->set_thresholds(
           metric => $key,
-          warning => 50,
-          critical => 90);
+          warning => $_ eq "wait" ? 10 : 80,
+          critical => $_ eq "wait" ? 25 : 90);
       $self->add_message($self->check_thresholds(
           metric => $key,
           value => $self->{$key}));

Reply via email to