diff --git a/agent_based/cisco_bgp_peer.py b/agent_based/cisco_bgp_peer.py index ec9544093b808a78e377727ec2bbc36a9542d906..794b3f82efa1b7605abd759b9db646069b92e4c2 100644 --- a/agent_based/cisco_bgp_peer.py +++ b/agent_based/cisco_bgp_peer.py @@ -27,9 +27,9 @@ # 2021-03-27: rewrite for CMK2.0 # 2021-03-28: added warning for missing prefix limit/warn threshold # 2021-07-08: fixed handling of missing prefix limit/accepted prefixes/warn threshold. -# thanks to Florian[dot]Dille[at]aldi-sued[dot]com +# thanks to Florian[dot]Dille[at]<redacted>>[dot]com # 2021-07-13: fixed handling of perfdata (in/out updates, in/out total messages). -# thanks to Florian[dot]Dille[at]aldi-sued[dot]com and timhor[at]outlook[dot]com +# thanks to Florian[dot]Dille[at]<redacted>>[dot]com and timhor[at]outlook[dot]com # added type hinting for parsed data (section) # optimised data handling in check function (add prefixes to peer info) # made default state if item not found configurable via WATO @@ -233,6 +233,7 @@ register.snmp_section( ) # '1', # cbgpPeer3VrfId +# '2', # cbgpPeer3Type # '3', # cbgpPeer3RemoteAddr # '4', # cbgpPeer3VrfName # '5', # cbgpPeer3State @@ -315,8 +316,8 @@ def parse_inv_cisco_bgp_peer(string_table: List[StringTable]): 'status_columns': { 'last_error_code': ByteToHex(last_error), 'last_error': bgp_errors(last_error), + 'prev_state': bgp_peerstate(prev_state), }, - 'prev_state': bgp_peerstate(prev_state), } if local_as.isdigit(): diff --git a/cisco_bgp_peer.mkp b/cisco_bgp_peer.mkp index 0f061c46252e7782ccaa6f84ea5bddb7657b1b3c..c942943cd31c75950e96fad95d0e1282fee88992 100644 Binary files a/cisco_bgp_peer.mkp and b/cisco_bgp_peer.mkp differ