-
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 - problems with emtpy string #1835
Comments
I cant see anything in the snmp code which might cause this. I suspect it's an issue with the underlying gosnmp library. Now I might not be opposed to an option to control the behavior. But not sure. |
hi, seems that there is still a fix in gosnmp thanks |
I'll create another PR to update gosnmp. |
Bug report
Hi,
i am querying interfaces from a switch and i set the ifAlias as tag
If ifAlias is empty no tag added
so far so good,
but sometime a get the ifAlias added with an empty string
it seems like (given that ifAlias is empty) :
Relevant telegraf.conf:
and for another test:
System info:
Telegraf - version 1.0.0
CentOS Linux release 7.2.1511
Expected behavior:
if ifAlias is empty no tag should be added
Actual behavior:
sometimes the tag is added - with an empty string
Additional info:
empty ifAlias means a null-string
single-request looks like:
test,agent_host=vie-sw4,host=phoron28v,ifAlias=,ifName=g10 ifHCInOctets=0i 1475354210000000000
with a bulk request it looks like:
The text was updated successfully, but these errors were encountered: