Cisco BGP
Daniel Corbe
daniel.junkmail at gmail.com
Wed Apr 13 22:24:51 CEST 2005
Well I wish I had read some of this after I posted this message
because I went ahead and whipped up a little perl script to check the
BGP status.
It doesn't support all the standard plugin options nor does it import
the utils.pm strictly as according to the nagios plugin guide;
however, it works and it works quite well.
Usage: -H <hostname> -C <snmp community> -s <IP address of BGP session
you want to check>
See attached.
-Daniel
On 4/13/05, Arnold Wang <arnold.wang at inovis.com> wrote:
>
>
>
> Another option is using "check_snmp" plug-in. The OID for the BGP peer
> status, you may need double check it according to the IOS image you're
> running, is .1.3.6.1.2.1.15.3.1.2. For example, for my test router
> 10.17.1.250, I can use the following command to check its BGP status with
> peer 10.17.1.2:
>
> ./check_snmp -H 10.17.1.250 -C public -o .1.3.6.1.2.1.15.3.1.2.10.17.1.2 -m
> SNMPv2-SMI
>
> The result is "SNMP OK – 6", which indicates it's running. Other possible
> values are:
>
> .1.3.6.1.2.1.15.3.1.2
>
> bgpPeerState OBJECT-TYPE
>
> -- FROM BGP4-MIB
>
> SYNTAX Integer { idle(1), connect(2), active(3),
>
> opensent(4), openconfirm(5), established(6) }
>
> MAX-ACCESS read-only
>
> STATUS Current
>
> DESCRIPTION "The BGP peer connection state."
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_bgp
Type: application/octet-stream
Size: 1592 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050413/fcd0debf/attachment.obj>
More information about the Users
mailing list