Added a preg_replace to get rid of snmp errors for bgp graphs #346

Merged
merged 1 commit into from Nov 12, 2014

Projects

None yet

2 participants

@laf
Member
laf commented Nov 6, 2014

This is a bit of a work around but without refactoring how snmp is called then this is the best I can do. It's currently a bug and stops bgp graphs working for devices that don't support all currently used snmp calls:

This is currently what is happening:

RRD[update /opt/librenms/rrd/router/cbgp-1.1.1.1.ipv4.unicast.rrd N:0:No Such Instance currently exists at this OID:0:No Such Instance currently exists at this OID:No Such Instance currently exists at this OID]

This patch replaces No Such Instance currently exists at this OID with 0 so that an RRD update can happen and in turn generate the graphs.

@paulgear paulgear merged commit e77c4ce into librenms:master Nov 12, 2014

1 check passed

ci/scrutinizer Scrutinizer: No new issues
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment