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

update project

parent 3ca0d961
No related branches found
No related tags found
No related merge requests found
......@@ -238,12 +238,12 @@ def check_ospfv3_interface(item, params, section: Dict[str, OspfV3Interface]) ->
yield Metric(name='ospfv3_interface_events', value=interface.IfEvents)
yield Metric(name='ospfv3_interface_linkscopelsacount', value=interface.IfLinkScopeLsaCount)
yield Result(state=State.OK, notice=f'\nInterface type: {interface.IfType}')
yield Result(state=State.OK, notice=f'\nInterface priority: {interface.IfRtrPriority}')
yield Result(state=State.OK, notice=f'\nInterface hello interval: {interface.IfHelloInterval}')
yield Result(state=State.OK, notice=f'\nInterface dead interval: {interface.IfRtrDeadInterval}')
yield Result(state=State.OK, notice=f'\nInterface poll interval: {interface.IfPollInterval}')
yield Result(state=State.OK, notice=f'\nInterface metric value: {interface.IfMetricValue}')
yield Result(state=State.OK, notice=f'Interface type: {interface.IfType}')
yield Result(state=State.OK, notice=f'Interface priority: {interface.IfRtrPriority}')
yield Result(state=State.OK, notice=f'Interface hello interval: {interface.IfHelloInterval}')
yield Result(state=State.OK, notice=f'Interface dead interval: {interface.IfRtrDeadInterval}')
yield Result(state=State.OK, notice=f'Interface poll interval: {interface.IfPollInterval}')
yield Result(state=State.OK, notice=f'Interface metric value: {interface.IfMetricValue}')
if interface.IfAdminStatus == 'disabled':
yield Result(state=State.WARN, notice='Admin status is disabled')
......
......@@ -257,7 +257,7 @@ def check_ospfv3_neighbor(item, params, section: Dict[str, OspfV3Neighbor]) -> C
elif nbrstate in params['warning_states']:
yield Result(state=State.WARN, notice=f'State: {nbrstatus}')
elif nbrstate in params['ok_states']:
yield Result(state=State.OK, summary=f', State: {nbrstatus}')
yield Result(state=State.OK, summary=f'State: {nbrstatus}')
else:
yield Result(state=State.UNKNOWN, notice='Invalid Output from Agent')
......
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