Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP probing is broken for MIBs with objects under different top-level OIDs #15

Open
SpComb opened this issue May 12, 2018 · 1 comment
Labels

Comments

@SpComb
Copy link
Member

SpComb commented May 12, 2018

Some common MIBs like SNMPv2-MIB and IF-MIB contain objects in multiple different OID trees. While the top-level OID for the SNMPv2-MIB itself is .1.3.6.1.6.3.1, most of the interesting objects are actually under the legacy .1.3.6.1.2.1.1 system group, and others under the 1.3.6.1.2.1.11 snmp groups: http://www.oidview.com/mibs/0/SNMPv2-MIB.html

Probing for the .1.3.6.1.6.3.1 OID will fail if the system only supports the older system objects, and does not support any of the newer objects defined under the MIB OID.

This affects Linux snmpd, and breaks API queries like GET /api/hosts/test/objects/?object=SNMPv2-MIB::* - although note that GET /api/hosts/test/objects/SNMPv2-MIB::sysDescr still works fine, since that isn't limited to probed MIBs.

@SpComb
Copy link
Member Author

SpComb commented May 12, 2018

Simple fix for the GET /api/hosts/test/objects/?object=SNMPv2-MIB::* issue would be to just forget about the probed MIBs and match against all known objects... however the concept of MIB probing still sounds useful as a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant