Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 8312f710 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 9aa09dfc
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@
# 2021-11-03: fix negative vpn active tine
# 2022-01-19: added workaround for not matching IKE_OID_end and cipSecTunIkeTunnelIndexfor not matching
# IKE_OID_end and cipSecTunIkeTunnelIndex, try to match IPSec nad IKE sa by remote address
#
# 2022-04-01: changed IPSec SA count output to check levels
# snmpwalk sample
#
......@@ -300,7 +300,14 @@ def check_cisco_vpn_tunnel(item, params, section: Dict[str, IkeSa]) -> CheckResu
render_func=render.timespan,
metric_name='cisco_vpn_tunnel_cipSecTunActiveTime'
)
yield Result(state=State.OK, summary=f'SAs: {ipsecsummary.sa_count}')
yield from check_levels(
label='IPSec SAs',
value=ipsecsummary.sa_count,
metric_name='cisco_vpn_tunnel_ipsec_sa_count',
render_func=lambda v: f'{int(v)}',
)
# yield Result(state=State.OK, summary=f'SAs: {ipsecsummary.sa_count}')
ipsec_in_octets = 0
ipsec_out_octets = 0
# convert to octets/packets per second
......
No preview for this file type
......@@ -11,7 +11,7 @@
'name': 'cisco_vpn_tunnel',
'num_files': 3,
'title': 'Monitor Cisco VPN Tunnel',
'version': '20220119.v0.3',
'version': '20220401.v0.3a',
'version.min_required': '2.0.0',
'version.packaged': '2021.09.20',
'version.usable_until': None}
\ No newline at end of file
......@@ -137,6 +137,14 @@ metric_info['cisco_vpn_tunnel_cipSecTunActiveTime'] = {
'unit': 's',
'color': '26/b',
}
metric_info['cisco_vpn_tunnel_ipsec_sa_count'] = {
'title': _('IPSec SA count'),
'help': _(''),
'unit': 'count',
'color': '12/b',
}
metric_info['cisco_vpn_tunnel_cipSecTunHcInOctets'] = {
'title': _('IPSec Bytes in'),
'help': _(''),
......@@ -277,6 +285,12 @@ graph_info['cisco_vpn_tunnel_ipsec_uptime'] = {
('cisco_vpn_tunnel_cipSecTunActiveTime', 'area'),
],
}
graph_info['cisco_vpn_tunnel_ipsec_sa_count'] = {
'title': _('IPSec SA count'),
'metrics': [
('cisco_vpn_tunnel_ipsec_sa_count', 'area'),
],
}
graph_info['cisco_vpn_tunnel_ipsec_octets'] = {
'title': _('IPSec Bytes/s'),
'metrics': [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment