diff --git a/wireguard/lib/check_mk/base/plugins/agent_based/wireguard.py b/wireguard/lib/check_mk/base/plugins/agent_based/wireguard.py index 43d9683d..49f28796 100644 --- a/wireguard/lib/check_mk/base/plugins/agent_based/wireguard.py +++ b/wireguard/lib/check_mk/base/plugins/agent_based/wireguard.py @@ -63,8 +63,7 @@ def discover_wireguard(section) -> DiscoveryResult: for interface, peers in section.items(): yield Service(item='%s' % interface) for peer, data in peers.items(): - yield Service(item='%s Peer %s' % (interface, peer), - parameters={'allowed-ips': data['allowed-ips']}) + yield Service(item='%s Peer %s' % (interface, peer)) def check_wireguard(item, params, section): @@ -120,6 +119,8 @@ def check_wireguard(item, params, section): since = now - data['latest-handshake'] if since < timeout_warn or since < timeout_crit: activepeers += 1 + if timeout_warn < 0 and timeout_crit < 0: + activepeers += 1 yield Result(state=State.OK, summary="%d configured peer(s)" % numpeers) yield Metric('configured_vpn_tunnels', numpeers) diff --git a/wireguard/wireguard-1.6.0.mkp b/wireguard/wireguard-1.6.0.mkp deleted file mode 100644 index 66aa0f3f..00000000 Binary files a/wireguard/wireguard-1.6.0.mkp and /dev/null differ diff --git a/wireguard/wireguard-1.6.1.mkp b/wireguard/wireguard-1.6.1.mkp new file mode 100644 index 00000000..13d484f8 Binary files /dev/null and b/wireguard/wireguard-1.6.1.mkp differ