Hi Joe,
There's a long standing bug there which I have not had the time to fix yet :( The error is not actually in the juniper polling code but in one of the snmp functions used, that does not fully populate the array with the snmp results :-/
Tom
On Thu, 2013-03-07 at 22:28 +0800, Joe Wooller wrote:
Hey Guys,
I have just started using Observium, so far I think it's great! (Good work) I have however stumbled across an issue with BGP Prefixes on my Juniper J2320. When I do a debug on discovery.php and poller.php (after adding the host) it appears that it is extracting the correct information for jnxBgpM2PrefixInPrefixesAccepted and jnxBgpM2PrefixInPrefixesRejected for both IPv4 and IPv6, however it only seems to graph the prefixes from only 1 of my peers (they have 2 ipv4 and 1 ipv6 session with me) so I am seeing graphs for these 3, but not any others.
In the debug information I am also only seeing an update for the graphs that are working. (Obviously)
SQL[UPDATE `bgpPeers_cbgp` set `AcceptedPrefixes` ='58',`DeniedPrefixes` ='0',`PrefixAdminLimit` ='',`PrefixThreshold` ='',`PrefixClearThreshold` ='',`AdvertisedPrefixes` ='3103',`SuppressedPrefixes` ='',`WithdrawnPrefixes` ='' WHERE `device_id` = '7' AND bgpPeerIdentifier = 'x.x.x.x' AND afi = 'ipv4' AND safi = 'unicast'] RRD[/usr/bin/rrdtool create /opt/observium/rrd/rs1/cbgp-x.x.x.x.ipv4.unicast.rrd DS:AcceptedPrefixes:GAUGE:600:U:100000000000 \ DS:DeniedPrefixes:GAUGE:600:U:100000000000 \ DS:AdvertisedPrefixes:GAUGE:600:U:100000000000 \ DS:SuppressedPrefixes:GAUGE:600:U:100000000000 \ DS:WithdrawnPrefixes:GAUGE:600:U:100000000000 RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:6:1440 RRA:AVERAGE:0.5:24:1440 RRA:AVERAGE:0.5:288:1440 RRA:MIN:0.5:1:720 RRA:MIN:0.5:6:1440 RRA:MIN:0.5:24:775 RRA:MIN:0.5:288:797 RRA:MAX:0.5:1:720 RRA:MAX:0.5:6:1440 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 RRA:LAST:0.5:1:1440 ] OK u:0.00 s:0.01 r:14.58 RRD[update /opt/observium/rrd/rs1/cbgp-x.x.x.x.ipv4.unicast.rrd N:58:0:3103::]
I see this for all 3 sessions the peer has, but for none of the others. I am not sure where to start debugging this further.
Any help would be greatly appreciated?
Cheers Joe
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium