BGP is a fairly hairy medium sized beast which can be hard for new admins to handle. This script was developed to catch some of the problems that can burn an admin when using and monitoring BGP. Several different things are checked to determine the health and status of the BGP connections with neighbors.Often these problems will be made obvious when other services start to fail because of BGP, but this script is meant to help catch BGP problems before they cause larger problems in the network. This script is written for BGP4 on a Cisco router, but it could easily be modified to use with other vendors if the correct OIDs were identified.
UPDATE 01/31/2011: Fixed bug with label being included in SNMP response, changed snmpget command to change it to numeric