diff --git a/README.md b/README.md index 542c9539cab635b0bf91a0b6657f2ccc42db2cec..43440697efe3a36c1f50ef71b984f6c56a9921e1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[PACKAGE]: ../../raw/master/mkp/cisco_vpn_tunnel-0.4.0-20230607.mkp "cisco_vpn_tunnel-0.4.0-20230607.mkp" +[PACKAGE]: ../../raw/master/mkp/cisco_vpn_tunnel-0.4.1-20240814.mkp "cisco_vpn_tunnel-0.4.1-20240814.mkp" # Cisco IPSec VPN tunnel Monitors the status of Cisco IPSec VPN tunnels. This is a complete rewrite of the original check diff --git a/mkp/cisco_vpn_tunnel-0.4.1-20240814.mkp b/mkp/cisco_vpn_tunnel-0.4.1-20240814.mkp new file mode 100644 index 0000000000000000000000000000000000000000..52ba3cc4c618d39a7b667bf9257b62b9c8c7a253 Binary files /dev/null and b/mkp/cisco_vpn_tunnel-0.4.1-20240814.mkp differ diff --git a/source/agent_based/cisco_vpn_tunnel.py b/source/agent_based/cisco_vpn_tunnel.py index 912c365005fb227588023c408e54dad2b9eb0ef9..61380c062da707921ac1564bd2d6a19e497fc05e 100644 --- a/source/agent_based/cisco_vpn_tunnel.py +++ b/source/agent_based/cisco_vpn_tunnel.py @@ -22,7 +22,7 @@ # 2022-12-17: check input values for isdigit() # 2023-06-07: fixed ValueError (not enough values to unpack (expected 10, got 4)) in parse function (ipsec_tunnel_entry) # 2023-06-07: fixed ValueError (not enough values to unpack (expected 18, got 4)) in parse function (ike_tunnel_entry) -# +# 2024-08-14: fixed missing () on isdigit # snmpwalk sample # @@ -172,7 +172,7 @@ def parse_cisco_vpn_tunnel(string_table: List[StringTable]) -> Dict[str, IkeSa]: ipsec_sa.hc_out_octets += int(hc_out_octets) if hc_out_octets.isdigit() else 0 ipsec_sa.out_pkts += int(out_pkts) if out_pkts.isdigit() else 0 ipsec_sa.out_drop_pkts += int(out_drop_pkts) if out_drop_pkts.isdigit() else 0 - if active_time.isdigit and (int(active_time) // 100 > ipsec_sa.active_time): + if active_time.isdigit() and (int(active_time) // 100 > ipsec_sa.active_time): ipsec_sa.active_time = int(active_time) // 100 # IKE SA diff --git a/source/packages/cisco_vpn_tunnel b/source/packages/cisco_vpn_tunnel index f52593ba9919fd80ac1ea04b02854f8c24b9d2ff..0cee533b3b0697aff484762e5d2c9dade948ea7f 100644 --- a/source/packages/cisco_vpn_tunnel +++ b/source/packages/cisco_vpn_tunnel @@ -9,7 +9,7 @@ 'gui': ['metrics/cisco_vpn_tunnel.py', 'wato/cisco_vpn_tunnel.py']}, 'name': 'cisco_vpn_tunnel', 'title': 'Monitor Cisco VPN Tunnel', - 'version': '0.4.0-20230607', + 'version': '0.4.1-20240814', 'version.min_required': '2.1.0b1', - 'version.packaged': '2.2.0p24', + 'version.packaged': 'cmk-mkp-tool 0.2.0', 'version.usable_until': None}