-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 plugin mapping #1729
Comments
@phemmer thoughts? do you know if this is possible? |
ack! Yeah, as the plugin stands, there is no way to do this. The simplest solution I can think of would be to add a |
That's great news. oid_index_suffix sounds like a workable solution to me |
+1 on this feature as well, I am running into a similar issue
For whatever reason the SNMP implementation with this vendor placed the index second last in the OID |
I have started using the new Telegraf SNMP plugin, and so far working really well but I have hit an issue that I am trying to either work around or see if could get a fix for?
I am using the mib cbgpPeer2Table to get BGP session information from a Cisco router. Most of the stats are collected fine, but the number of prefixes for each peer is kept in a seleparate table with a suffix on the mapping.
For example if I snmpwalk cbgpPeer2RemoteIdentifier I see:
If I then fetch cbgpPeer2State I get:
To collect this I use the following telegraf config works and it works as expected:
My problem occurs when I try to include data from cbgpPeer2AcceptedPrefixes. The results from an snmpwalk looks like:
As you can see there is a suffix of ".1.1" on these results, so telegraf is just ignoring the entries as they don't match any tag.
Is there some way to work around this, maybe applying either a "map" or somehow specify a suffix?
The text was updated successfully, but these errors were encountered: