Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 5df3b585ae3f81433188951bde0344852fd54906
https://github.com/tribe29/checkmk/commit/5df3b585ae3f81433188951bde0344852…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2020-12-02 (Wed, 02 Dec 2020)
Changed paths:
A .werks/11718
A checkman/ups_battery_state
M checkman/ups_capacity
R checks/ups_capacity
R cmk/base/check_legacy_includes/ups_capacity.py
A cmk/base/plugins/agent_based/ups_battery_state.py
A cmk/base/plugins/agent_based/ups_capacity.py
A cmk/base/plugins/agent_based/ups_eaton_mg.py
A cmk/base/plugins/agent_based/utils/ups.py
M cmk/gui/plugins/metrics/environment.py
M cmk/gui/plugins/metrics/translation.py
R tests/unit/checks/generictests/datasets/ups_capacity_invalid_time_left.py
M tests/unit/checks/test_generic_legacy_conversion.py
A tests/unit/cmk/base/plugins/agent_based/utils/test_ups.py
Log Message:
-----------
CMK-6197: ups_battery_state: New check for UPS Eaton battery state
- New utils.ups module, with generic check functions for battery
capacity and battery state
- Migrated ups_capacity.include to the new utils.ups module
- Migrated check ups_capacity to use the generic check function from
utils.ups
- Added proper metric_info for ups_capacity metrics
- New check ups_battery_state, that uses the generic
check_ups_battery_state function from utils.ups
- New check_sections for UPS Eaton devices, that read out information
about battery capacity and states from "Merlin Gerin" labeled OIDs
- Add Werk #11718
Change-Id: I9221067943aac0f2644f3a77d9042cc645a1d09e