Code

snmp plugin: Improve subtree matching.
authorFlorian Forster <octo@collectd.org>
Sun, 23 Sep 2012 09:50:57 +0000 (11:50 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 23 Sep 2012 09:50:57 +0000 (11:50 +0200)
commit742e939aa454784382e51fc9bdd82f18314b635c
treed9ddfda2dec320c350011a8fd622b4aadd0f1bbc
parent69f341f4042f56279be79501d3222c6cb1382e85
snmp plugin: Improve subtree matching.

Some MIBs use subtrees with an unusual OID naming schema. For example,
some network hardware encodes the MAC address in the last six parts of
the OID. Previously, the code only checked the last part of the OID
("sub-id") and assumed this was increasing. This assumption is not true
in such naming schemas and is not required by SNMP. This patch fixes
this behavior by comparing the entire "OID suffix".

This hopefully fixes Github issue #131.
src/snmp.c