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: add alias tag #911

Closed
r0bj opened this issue Mar 22, 2016 · 5 comments
Closed

SNMP: add alias tag #911

r0bj opened this issue Mar 22, 2016 · 5 comments

Comments

@r0bj
Copy link

r0bj commented Mar 22, 2016

There is "ifName" OID (1.3.6.1.2.1.31.1.1.1.1) but also "ifAlias" (1.3.6.1.2.1.31.1.1.1.18) as a custom port description. It would be great to have ability add additional tag as alias.

Maybe as an additional mapping_table in config?

ifName:

snmpwalk -v2c -c public 127.0.0.1 1.3.6.1.2.1.31.1.1.1.1.8
iso.3.6.1.2.1.31.1.1.1.1.8 = STRING: "eth2"

ifAlias:

snmpwalk -v2c -c public 127.0.0.1 1.3.6.1.2.1.31.1.1.1.18.8
iso.3.6.1.2.1.31.1.1.1.18.8 = STRING: "GTS"

Example of line protocol:

ifHCInOctets,host=gw1,instance=eth0,alias=GTS,unit=octets ifHCInOctets=378553758147i 1458676458140933859
@titilambert
Copy link
Contributor

This is a good idea ! In fact, we have to add the string data support in snmp plugin... Also, All string data could be processed as influxdb tag or as influxdb field.

@sparrc Is there any issue to send string data as value in influxdb from Telegraf

@titilambert
Copy link
Contributor

To get this working we need to get the issue #808 done first ( be able to merge data in the same measurement )

@sparrc
Copy link
Contributor

sparrc commented Mar 23, 2016

Nope, strings are allowed in the database as both fields and tags

@wilsncc
Copy link

wilsncc commented Jul 27, 2016

Hey, I wonder if there has been any movement on this?

This would be really handy to have. Not sue where I would need to start if I were to submit a patch myself, if someone could make any suggestions?

@sparrc
Copy link
Contributor

sparrc commented Sep 6, 2016

with the new SNMP plugin (#1389) the user can now specify SNMP OIDs to be used as tags, which I believe fixes this issue.

It will be available in release 1.0

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

No branches or pull requests

4 participants