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 565d60da authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 0af90b2b
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ def parse_checkpoint_asg_smo_counters(string_table: StringTable) -> Dict[str, Ch
'non_accel_concurr_conn': int(asgNonAccelConcurrConn),
},
label='all/accelerated/non accelerated',
unit='connections',
unit=' connections',
text=f'{int(asgConcurrConn):d}/{int(asgAccelConcurrConn):d}/{int(asgNonAccelConcurrConn):d}',
)
items['Connection rate'] = CheckpointAsgSmoCounters(
......@@ -94,7 +94,7 @@ def parse_checkpoint_asg_smo_counters(string_table: StringTable) -> Dict[str, Ch
'non_accel_connection_rate': int(asgNonAccelConnectionRate),
},
label='current/average/min/max',
unit='connections/s',
unit=' connections/s',
text=f'{int(asgLoad):d}/{int(asgAccelLoadAvg):d}/{int(asgAccelLoadMin):d}/{int(asgAccelLoadMax):d}',
)
items['Load'] = CheckpointAsgSmoCounters(
......@@ -124,7 +124,7 @@ def parse_checkpoint_asg_smo_counters(string_table: StringTable) -> Dict[str, Ch
'nat_conn': int(asgNatConn),
},
label='NAT Connections/NAT connection rate',
unit='connections',
unit=' connections',
text=f'{int(asgNatConn):d}/{int(asgNatConn):d}',
)
items['VPN'] = CheckpointAsgSmoCounters(
......@@ -141,7 +141,7 @@ def parse_checkpoint_asg_smo_counters(string_table: StringTable) -> Dict[str, Ch
'throughput': int(asgThroughput),
},
label='Throughput',
unit='Bytes/s',
unit=' Bytes/s',
text=f'{int(asgThroughput):d}'
)
items['Packet rate'] = CheckpointAsgSmoCounters(
......@@ -149,7 +149,7 @@ def parse_checkpoint_asg_smo_counters(string_table: StringTable) -> Dict[str, Ch
'packet_rate': int(asgPacketRate),
},
label='Packet Rate',
unit='Packets/s',
unit=' Packets/s',
text=f'{int(asgPacketRate):d}',
)
if items:
......@@ -171,7 +171,7 @@ def check_checkpoint_asg_smo_counters(item, params, section: Dict[str, Checkpoin
for key in entry.counters.keys():
yield Metric(value=entry.counters[key], name=f'checkpoint_asg_smo_counters_{key}')
yield Result(state=State.OK, summary=f'{entry.label}: {entry.text}')
yield Result(state=State.OK, summary=f'{entry.label}: {entry.text}{entry.unit}')
......
No preview for this file type
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