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-03-04 00:17:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health (Old)
and /work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1958
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "monitoring-plugins-nwc_health"
Fri Mar 4 00:17:57 2022 rev:19 rq:958750 version:10.1.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/monitoring-plugins-nwc_health/monitoring-plugins-nwc_health.changes
2022-01-17 00:22:51.332192834 +0100
+++
/work/SRC/openSUSE:Factory/.monitoring-plugins-nwc_health.new.1958/monitoring-plugins-nwc_health.changes
2022-03-04 00:18:44.292299108 +0100
@@ -1,0 +2,9 @@
+Thu Feb 24 20:41:06 UTC 2022 - Martin Hauke <[email protected]>
+
+- Update to version 10.1.0.1
+ * suppress unknown arista sensors which are not marked as faulty
+ * check filesystems in Arista (full Log/Core stops syslog and
+ accounting)
+ * accept disabled sensors
+ * bugfix in arista power supply
+-------------------------------------------------------------------
Old:
----
check_nwc_health-10.0.0.2.tar.gz
New:
----
check_nwc_health-10.1.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ monitoring-plugins-nwc_health.spec ++++++
--- /var/tmp/diff_new_pack.gtuKNT/_old 2022-03-04 00:18:44.852299226 +0100
+++ /var/tmp/diff_new_pack.gtuKNT/_new 2022-03-04 00:18:44.860299228 +0100
@@ -19,7 +19,7 @@
%define realname check_nwc_health
Name: monitoring-plugins-nwc_health
-Version: 10.0.0.2
+Version: 10.1.0.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.0.0.2.tar.gz -> check_nwc_health-10.1.0.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/check_nwc_health-10.0.0.2/ChangeLog
new/check_nwc_health-10.1.0.1/ChangeLog
--- old/check_nwc_health-10.0.0.2/ChangeLog 2022-01-07 17:10:22.996920200
+0100
+++ new/check_nwc_health-10.1.0.1/ChangeLog 2022-02-23 20:36:58.110662500
+0100
@@ -1,3 +1,10 @@
+* 2022-02-23 10.1.0.1
+ suppress unknown arista sensors which are not marked as faulty
+* 2022-02-18 10.1
+ check filesystems in Arista (full Log/Core stops syslog and accounting)
+ accept disabled sensors
+* 2022-01-13 10.0.0.3
+ bugfix in arista power supply
* 2022-01-07 10.0.0.2
bugfix in f5 ltm detail output
* 2021-11-22 10.0.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/check_nwc_health-10.0.0.2/configure
new/check_nwc_health-10.1.0.1/configure
--- old/check_nwc_health-10.0.0.2/configure 2022-01-07 17:10:20.456920200
+0100
+++ new/check_nwc_health-10.1.0.1/configure 2022-02-23 20:36:55.270662500
+0100
@@ -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.0.0.2.
+# Generated by GNU Autoconf 2.69 for check_nwc_health 10.1.0.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.0.0.2'
-PACKAGE_STRING='check_nwc_health 10.0.0.2'
+PACKAGE_VERSION='10.1.0.1'
+PACKAGE_STRING='check_nwc_health 10.1.0.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.0.0.2 to adapt to many kinds of
systems.
+\`configure' configures check_nwc_health 10.1.0.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.0.0.2:";;
+ short | recursive ) echo "Configuration of check_nwc_health 10.1.0.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.0.0.2
+check_nwc_health configure 10.1.0.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.0.0.2, which was
+It was created by check_nwc_health $as_me 10.1.0.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.0.0.2'
+ VERSION='10.1.0.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.0.0.2, which was
+This file was extended by check_nwc_health $as_me 10.1.0.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.0.0.2
+check_nwc_health config.status 10.1.0.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.0.0.2/configure.ac
new/check_nwc_health-10.1.0.1/configure.ac
--- old/check_nwc_health-10.0.0.2/configure.ac 2022-01-07 17:10:22.996920200
+0100
+++ new/check_nwc_health-10.1.0.1/configure.ac 2022-02-23 20:36:58.110662500
+0100
@@ -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.0.0.2)
+AC_INIT(check_nwc_health,10.1.0.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.0.0.2/plugins-scripts/Classes/Arista/Component/DiskSubsystem.pm
new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista/Component/DiskSubsystem.pm
---
old/check_nwc_health-10.0.0.2/plugins-scripts/Classes/Arista/Component/DiskSubsystem.pm
1970-01-01 01:00:00.000000000 +0100
+++
new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista/Component/DiskSubsystem.pm
2022-02-23 20:36:58.370662500 +0100
@@ -0,0 +1,12 @@
+package Classes::Arista::Component::DiskSubsystem;
+our @ISA = qw(Classes::HOSTRESOURCESMIB::Component::DiskSubsystem);
+use strict;
+
+sub init {
+ my ($self) = @_;
+ $self->get_snmp_tables('HOST-RESOURCES-MIB', [
+ ['storages', 'hrStorageTable',
'Classes::HOSTRESOURCESMIB::Component::DiskSubsystem::Storage', sub { my $o =
shift; return ($o->{hrStorageDescr} =~ /^(Log|Core)$/ or $o->{hrStorageType} eq
'hrStorageFixedDisk') } ],
+ ]);
+}
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/check_nwc_health-10.0.0.2/plugins-scripts/Classes/Arista/Component/EnvironmentalSubsystem.pm
new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista/Component/EnvironmentalSubsystem.pm
---
old/check_nwc_health-10.0.0.2/plugins-scripts/Classes/Arista/Component/EnvironmentalSubsystem.pm
2022-01-07 17:10:23.196920200 +0100
+++
new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista/Component/EnvironmentalSubsystem.pm
2022-02-23 20:36:58.360662500 +0100
@@ -62,6 +62,10 @@
sub check_state {
my ($self) = @_;
+ # An ifAdminStatus of 'up' is equivalent to setting the entStateAdmin
+ # object to 'unlocked'. An ifAdminStatus of 'down' is equivalent to
+ # setting the entStateAdmin object to either 'locked' or
+ # 'shuttingDown', depending on a system's interpretation of 'down'.
$self->add_info(sprintf "%s is %s (admin %s, oper %s)",
$self->{entPhysicalDescr}, $self->{entStateUsage},
$self->{entStateAdmin}, $self->{entStateOper});
@@ -81,6 +85,14 @@
} else {
$self->add_unknown();
}
+ } elsif ($self->{entStateAdmin} eq "locked") {
+ $self->add_ok(); # admin disabled, ignore
+ } elsif ($self->{entStateAdmin} eq "unknown" and $self->{entStateOper} eq
"unknown" and $self->{entPhySensorOperStatus} eq "unavailable") {
+ # The value 'unavailable(2)' indicates that the agent presently cannot
obtain the sensor value. The value 'nonoperational(3)' indicates that the agent
believes the sensor is broken. The sensor could have a hard failure
(disconnected wire), ...
+ # Ich will meine Ruhe, also unavailable=ok. Sonst waers ja nonoperational
+ $self->add_ok();
+ } elsif ($self->{entStateOper} ne "enabled" and $self->{entStateStandby} eq
"providingService" and exists $self->{entPhySensorValue} and
$self->{entPhySensorValue}) {
+ $self->add_critical();
} else {
$self->add_ok(); # admin disabled, ignore
}
@@ -120,6 +132,14 @@
$self->check_state();
}
+sub check_state {
+ my ($self) = @_;
+ $self->SUPER::check_state();
+ if ($self->{entStateOper} eq "unknown" and $self->{entStateAdmin} eq
"unknown" and $self->{entStateStandby} eq "providingService") {
+ $self->add_critical_mitigation("plug has been pulled");
+ }
+}
+
package Classes::Arista::Component::EnvironmentalSubsystem::Sensor;
our @ISA = qw(Classes::Arista::Component::EnvironmentalSubsystem::Entity);
use strict;
@@ -168,4 +188,15 @@
);
}
+__END__
+Stecker gezogen
+[POWERSUPPLY_100721000]
+entPhysicalClass: powerSupply
+entPhysicalDescr: PowerSupply2
+entPhysicalName:
+entStateAdmin: unknown
+entStateLastChanged:
+entStateOper: unknown
+entStateStandby: providingService <-kein failover, der das hier sichert
+entStateUsage: active
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/check_nwc_health-10.0.0.2/plugins-scripts/Classes/Arista.pm
new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista.pm
--- old/check_nwc_health-10.0.0.2/plugins-scripts/Classes/Arista.pm
2022-01-07 17:10:23.256920200 +0100
+++ new/check_nwc_health-10.1.0.1/plugins-scripts/Classes/Arista.pm
2022-02-23 20:36:58.440662500 +0100
@@ -7,9 +7,12 @@
if ($self->mode =~ /device::hardware::health/) {
$self->mult_snmp_max_msg_size(10);
$self->analyze_and_check_environmental_subsystem("Classes::Arista::Component::EnvironmentalSubsystem");
+
$self->analyze_and_check_disk_subsystem("Classes::Arista::Component::DiskSubsystem");
if (! $self->check_messages()) {
$self->clear_messages(0);
$self->add_ok("environmental hardware working fine");
+ } else {
+ $self->clear_messages(0);
}
} elsif ($self->mode =~ /device::hardware::load/) {
# CPU util on management plane
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/check_nwc_health-10.0.0.2/plugins-scripts/Makefile.am
new/check_nwc_health-10.1.0.1/plugins-scripts/Makefile.am
--- old/check_nwc_health-10.0.0.2/plugins-scripts/Makefile.am 2022-01-07
17:10:23.376920200 +0100
+++ new/check_nwc_health-10.1.0.1/plugins-scripts/Makefile.am 2022-02-23
20:36:58.550662500 +0100
@@ -458,6 +458,7 @@
Classes/Lantronix/SLS.pm \
Classes/Arista/ARISTABGP4V2MIB/Components/PeerSubsystem.pm \
Classes/Arista/Component/EnvironmentalSubsystem.pm \
+ Classes/Arista/Component/DiskSubsystem.pm \
Classes/Arista.pm \
Classes/Riverbed/SteelheadEX/Component/EnvironmentalSubsystem.pm \
Classes/Riverbed/Steelhead/Component/EnvironmentalSubsystem.pm \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/check_nwc_health-10.0.0.2/plugins-scripts/Makefile.in
new/check_nwc_health-10.1.0.1/plugins-scripts/Makefile.in
--- old/check_nwc_health-10.0.0.2/plugins-scripts/Makefile.in 2022-01-07
17:10:23.366920200 +0100
+++ new/check_nwc_health-10.1.0.1/plugins-scripts/Makefile.in 2022-02-23
20:36:58.550662500 +0100
@@ -701,6 +701,7 @@
Classes/Lantronix/SLS.pm \
Classes/Arista/ARISTABGP4V2MIB/Components/PeerSubsystem.pm \
Classes/Arista/Component/EnvironmentalSubsystem.pm \
+ Classes/Arista/Component/DiskSubsystem.pm \
Classes/Arista.pm \
Classes/Riverbed/SteelheadEX/Component/EnvironmentalSubsystem.pm \
Classes/Riverbed/Steelhead/Component/EnvironmentalSubsystem.pm \