[collectd] help with collecting # of accepted BGP routes

L. Gabriel Somlo gsomlo at gmail.com
Wed Oct 14 20:24:27 CEST 2009


I'm trying to graph the number of accepted bgp prefixes for
each peer of my border router. Using snmpwalk, I can retrieve
counts for all applicable BGP neighbors and protocols
(e.g. unicast, multicast) by running:

# snmpwalk -v2c -c comstr router CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes
CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes. = Counter32: 190837
CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes. = Counter32: 4477


# snmpwalk -On -v2c -c comstr router CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes
. = Counter32: 190835
. = Counter32: 4477

Using collectd, I added the following to the snmp plugin's config file:

<Plugin snmp>
   <Data "accepted_bgp_pfx">
      Type "current"
      Table true
      Values "CISCO-BGP4-MIB::cbgpPeerAcceptedPrefixes"
   <Host "router">
      Address ""
      Version 2
      Community "comstr"
      Collect "traffic" "errors" "unicast" "net_mem" "net_cpu" "net_temp" "accepted_bgp_pfx"
      Interval 300

I get .rrd files for everything else under ...router/snmp/*, but nothing for
"accepted_bgp_pfx". Also, no errors logged by collectd.

I'd expect to see something like current_192_168_16_106_1_1.rrd,
current_192_168_16_106_1_2.rrd, etc. for each peer/protocol.

Any ideas about what I might be doing wrong ?


More information about the collectd mailing list