2021-08-20: rewritten for CMK 2.0 by thl-cmk[at]outlook[dot]com based on the "BGP Peer State Check" check by Thomas Wollner (tw[at]ollner-net[dot]de), (http://wollner-net.de/check_mk/network_checks/bgp_peer-1.4.mkp) 2021-08-21: added more perfdata, added metrics file 2021-08-22: added WATO options, streamlined with cisco_bgp_peer 2021-08-29: moved static (longoutput) to inventory plugin moved helper functions to utils/bgp_peer WATO: removed htmloutput and infotext_values option 2021-11-14: merged check function with cisco_bgp_peer moved parse function to utils/bgp_peer 2022-04-02: WATO: added bgp neighbour states rewritten bgp neighbor state handling (made configurable) 2022-04-17: added peer_unavail_reason/peer_unavail_reason_str for huawei bgp peers 2022-04-24: added peer status to inventory added option to remove some columns from inventory 2022-04-28: added whois information to inventory 2022-04-29: added upper/lower prefix limits from wato added info if device is admin prefix limit capable (device_admin_limit) 2022-04-30: code clenup 2022-05-02: fixed missing not_in_service_time from params 2022-05-09: made item name configurable (don't use address-family/routing-instance/VRF)