Module: check_mk
Branch: master
Commit: 5c157d19ff569c454c315286b0e50217235d6553
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5c157d19ff569c…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Tue Apr 16 12:40:16 2019 +0200
7304 FIX Solaris uptime require across global & local zones
Solaris uptime check was not correctly working since not all versions of
Solaris and within global and local zones return consistent information.
This fix reverts Werk 4623, which fixed the problem for some setups but
broke it for others.
Currently Solaris agent will deliver more system information about
uptime. The check performs a cross validation of data, if values are
consistent uptime is returned. For inconsistent values, check goes into
UNKNOWN state and user is required to fix/patch their Solaris
system. Additional information of conflicting data is given to the user.
An agent update is needed.
CMK-1566
Change-Id: Ia27c852231ccc8bad2f19ae6ae6aaf3f3280fee0
---
.werks/7304 | 23 +++++++
agents/check_mk_agent.solaris | 17 +++--
checks/uptime | 119 ++++++++++++++++++++++++++++++++-
tests/unit/checks/test_uptime_check.py | 79 +++++++++++++++++++++-
4 files changed, 227 insertions(+), 11 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=5c157d19ff…
Module: check_mk
Branch: master
Commit: 35510f2140c7f3889444ad144b10a783c77dc439
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=35510f2140c7f3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Apr 21 19:37:48 2019 +0200
Move last SNMP related settings to SNMPHostConfig
All top level cmk_base.config SNMP related functions have been moved to
be wrapped in a single object SNMPHostConfig(). This object is handed
over to all SNMP processing code to tell it how to work with a host.
Cleaned up SNMP integration tests on the way.
Change-Id: I2f8104b7678b2e06788abae8dc3a2aef1a9f6d78
---
cmk_base/automations/check_mk.py | 2 +
cmk_base/checking.py | 6 +-
cmk_base/config.py | 25 ++--
cmk_base/crash_reporting.py | 6 +-
cmk_base/data_sources/snmp.py | 4 +-
cmk_base/snmp.py | 7 +-
cmk_base/snmp_utils.py | 2 +
tests/integration/cmk_base/snmp/test_snmp.py | 196 ++++++++++----------------
tests/unit/cmk_base/snmp/test_classic_snmp.py | 14 ++
9 files changed, 112 insertions(+), 150 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=35510f2140…