5.02021-11-21T21:28:53ZTemplatesRouterOS BGPRouterOS BGP## Overview
For more details using this template, take a look at the [repository](https://github.com/MrCirca/zabbix-routeros-bgp)
## Author
MrCirca
TemplatesBGP peer namesEXTERNALbgp_peer_names.sh["{HOST.CONN}","{$ROUTEROS_USERNAME}","{$ROUTEROS_PASSWORD}"]10BGP peer {#BGP_PEER_NAME} stateEXTERNALbgp_peer_field.sh["{HOST.CONN}", "{$ROUTEROS_USERNAME}", "{$ROUTEROS_PASSWORD}", {#BGP_PEER_NAME}, "state"]5RouterOS BGP value mapping{last(#5)}<4 and {last(#5)}>0BGP peer {#BGP_PEER_NAME} state is not establishedWARNINGBGP peer {#BGP_PEER_NAME} uptimeEXTERNALbgp_peer_field.sh["{HOST.CONN}", "{$ROUTEROS_USERNAME}", "{$ROUTEROS_PASSWORD}", {#BGP_PEER_NAME}, "uptime"]5{$ROUTEROS_PASSWORD}zabbix_discovery{$ROUTEROS_USERNAME}zabbixRouterOS BGP value mapping0disabled1idle2openconfirm - opensent3active4established