Module: check_mk
Branch: master
Commit: 52ee51bcb2e027ab6f823372dab53cb69d7d0c15
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=52ee51bcb2e027…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Apr 12 10:37:41 2019 +0200
7370 Linux agent now delievers output of 'ip address'
Previously the Linux agent delievered the output of 'ip link' which is a subset
of 'ip address'. Now the agent uses 'ip address'. The inventory plugin
{{mk_inventory}} also executed 'ip address'. This has been removed from the
agent plugin {{mk_inventory}}. The related inventory plugin 'lnx_if_a' has also
been removed. Instead the inventory plugin 'lnx_if' processes the IP addresses.
In order to use this feature you have to deploy the Linux agent and
{{mk_inventory}} agent plugin.
Notes:
- Add regression test
- Refactored parse function of 'lnx_if'; can now processes 'ip address'
instead of 'ip link'
- Agent delievers output of 'ip address' instead of 'ip link'
- Removed 'lnx_ip_a' section from 'mk_inventory' plugin
- Cleaned up obsolete 'lnx_ip_a' inventory plugin
- 'lnx_if' processes IP addresses for HW/SW inventory
Change-Id: I9b0c85ba8eee2dc28289947cd8cb258584b80697
---
.werks/7370 | 17 ++
agents/check_mk_agent.linux | 2 +-
agents/plugins/mk_inventory.linux | 2 -
checks/lnx_if | 295 +++++++++++----------
inventory/lnx_if | 26 +-
inventory/lnx_ip_a | 62 -----
.../generictests/datasets/lnx_if_regression.py | 118 +++++++++
7 files changed, 318 insertions(+), 204 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=52ee51bcb2…