Dear All,
I am using BGP with 2-3 peer with RB1100AHx2. I want to monitor BGP session. Is it possible to monitor with nagios or grate graphs with cacti so the we can keep log of BGP up/down.
Thanks,
Direct_Logic
Dear All,
I am using BGP with 2-3 peer with RB1100AHx2. I want to monitor BGP session. Is it possible to monitor with nagios or grate graphs with cacti so the we can keep log of BGP up/down.
Thanks,
Direct_Logic
You could do this via SNMP if the BGP tables you’re receiving aren’t full tables (full tables and SNMP output don’t work very nicely together due to the amount of data required to be sent).
Alternatively via the API or ssh if you’re creating a custom probe.
Thx for reply .
But i am unable to find any SNMP OID to get BGP state. Could anybody help in this.
Thanks
Direct_Logic
there are 3 MIBs for BGP:
Some useful OIDs (there are a whole lot more objects and details in the RFCs):
If you’re using Nagios (or whatever NMS) and want a “fully automated” monitoring, you can retrieve the entire BGP neighbor table (in your case 2-3 row entries) which will contain all these parameters for all the neighbors listed in the table or you can hardcode the IP addreses for the neighbors you’re interested in and check only for those. The OID for the table is .1.3.6.1.2.1.15.3.
Hope this helps,
Cheers!
On CCR-1026 running ROS 6.0 FIANL, returns nothing to it… ideas???
BR
Hi mandrade,
monitoring BGP sessions on MikroTik RouterOS was also on my list but unfortunately the BGP-related MIBs are not supported, at least not on RouterOS v5.x. Only some generic and MikroTik specific MIBs are implemented as of yet. The supported MIBs are:
MIBs used in RouterOS v5.x:
MIKROTIK-MIB
MIB-2
HOST-RESOURCES-MIB
IF-MIB
IP-MIB
IP-FORWARD-MIB
IPV6-MIB
BRIDGE-MIB
DHCP-SERVER-MIB
CISCO-AAA-SESSION-MIB
ENTITY-MIB
UPS-MIB
SQUID-MIB
Maybe a MikroTik official can shed some light regarding their plans to support the RFC4273 in the future, if any.
Hi mandrade,
monitoring BGP sessions on MikroTik RouterOS was also on my list but unfortunately the BGP-related MIBs are not supported, at least not on RouterOS v5.x. Only some generic and MikroTik specific MIBs are implemented as of yet. The supported MIBs are:
MIBs used in RouterOS v5.x:
MIKROTIK-MIB
MIB-2
HOST-RESOURCES-MIB
IF-MIB
IP-MIB
IP-FORWARD-MIB
IPV6-MIB
BRIDGE-MIB
DHCP-SERVER-MIB
CISCO-AAA-SESSION-MIB
ENTITY-MIB
UPS-MIB
SQUID-MIBMaybe a MikroTik official can shed some light regarding their plans to support the RFC4273 in the future, if any.
Hey MikroTik Team any plan to support RFC4273 MIBs???
BR
Agreed on all accounts. I can monitor my bgp sessions on all the Cisco routers I have.. would like to do the same on the
Mikrotik routers.
BGP peer state would be very helpful .
Agreed as well. Also, http://www.observium.org/wiki/Main_Page is a fantastic tool for usage/port/session status etc. monitoring.
any word from mikrotik?
If you guys could have a wishlist for BGP monitoring, what would it be?
I’d like:
Peer State
Peer # of routes received
Peer # of routes advertised
3 very simple, but useful things.
These 3 would be also my favorites .
I hope that bgp monitoring with snmp will be implemented soon.
Bringing up an old thread.
Does any one know if this has been implemented ?
I have been told by support that this will be improved in RouterOS v7
I have been told by support that this will be improved in RouterOS v7
A lot of interesting features and improvements are expected in v7… I wonder when it will be released…
Hi,
if you looking for a solution to bgp peer in nagios yet i have write a plugin.
Hey pincio,
thanks for the API idea, though if possible I’d ask you to go with https://github.com/efaden/MikroTikPerl as the api library.
(ssl support and so on)
based on your script I was able to check the route-count in a specific vrf:
my @cmd = ("/ip/route/print","=count-only=","?routing-mark=". $ng->get('vrf'));
the issue I’m now stuck at is: where does winbox get the prefix-count per peer from, I see no such value via
/routing bgp peer print
any hint is greatly appreciated.
regards
hk
Try
/routing bgp peer print status
Thanks Cha0s,
this definitely did the trick!
finally the prefix-count can be checked for a remote peer IP like this:
my @cmd = ("/routing/bgp/peer/print","=status=","?remote-address=". $ng->get('peer'),"=.proplist=prefix-count");
regards
hk