diff --git a/agent_based/ospfv3_interface.py b/agent_based/ospfv3_interface.py index 1a1db98c5efaf095b91c3d57ec30576b72aaea4f..2c135ada935ba88b687a1cd23a34f5e7d2f61147 100644 --- a/agent_based/ospfv3_interface.py +++ b/agent_based/ospfv3_interface.py @@ -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') diff --git a/agent_based/ospfv3_neighbor.py b/agent_based/ospfv3_neighbor.py index a03e5f8cbf9ce39daa4e9a04090c4e91f2b30252..f75eda696753b11b9823c89e0fa7282ec7da267d 100644 --- a/agent_based/ospfv3_neighbor.py +++ b/agent_based/ospfv3_neighbor.py @@ -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') diff --git a/ospfv3.mkp b/ospfv3.mkp index 28912d9c1dbf5fa110a36b43d9de172cd903f2bd..6238f236df567add1e609d24bcf53c2da3a907b9 100644 Binary files a/ospfv3.mkp and b/ospfv3.mkp differ