-
Notifications
You must be signed in to change notification settings - Fork 22
generated events fields using MIBs #3
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
Comments
The root prefix is interesting. I'd consider it undesirable and try to match the snmpwalk/snmpget output as much as possible for v1. That said, I'm glad to see resolution in v1! If I specify a partial oid, will it traverse the tree? Ex '1.3.6.1.2.1.1'. Or does it only accept leaf oids? |
Sorry, missed the PR. Its looking pretty good. Let me know when its ready for testing. I'm going to test against the network mib and see if I can pull all the counters. Even without auto-discovery, it will be super handy for fixed routers and other network devices that don't change (VPNs). |
@robgil you can specify any OID as the root to walk its subtree using the
and this would produce
|
@colinsurprenant perfect! I'll give this a try tomorrow against some test boxes and perhaps one of our network devices. |
@robgil I am not sure I understand
Did you mean "The root prefix is UNinteresting" ? |
@colinsurprenant I haven't run an snmpwalk in a while, but iirc it looks more like |
yeah ... I think I'll add something like a |
I just added the |
I'll close this issue, I merged the above option to strip the prefix, we can reopen if needed. |
I would like feedback on the current strategy for the generated event fields when using MIBs.
In this initial version we basically only support scalar values and we have no added logic for structuring MIB objects such as table in the event. These will be created linearly as originally generated, for now.
The field names will be formatted using what is provided in the MIB and what is not defined in the MIB will be prepended or appended as the OID numeric parts.
Here's an example, polling for these 3 OIDs
["1.3.6.1.2.1.1.1.0", "1.3.6.1.2.1.1.3.0", "1.3.6.1.2.1.1.5.0"]
RFC1213-MIB
results in this event:Here we see that the
1.3.6.1.2
root prefix is included in the field name. Is that desirable? Should we always strip it? or offer the option to strip it?The
.0
suffix for scalar values is also included. Is that desirable? Should we always strip it? or offer the option to strip it?The text was updated successfully, but these errors were encountered: