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

input.snmp - v3 unknown user name - still creates records with tags as integer #8558

Closed
henriknoerr opened this issue Dec 14, 2020 · 4 comments

Comments

@henriknoerr
Copy link

henriknoerr commented Dec 14, 2020

I have issues with telegraf output being sent to influx even when failing snmp credentials. Tags and values are somehow random integers - sorry I don't know the markup codes here to makes this look remotely nice 🥇

snmpwalk -v 3 -u user -a sha -A password -x aes -X password -l AuthPriv ipaddress CHECKPOINT-MIB::fwFrag-fragments -n ctxname_vsid10 snmpwalk: Unknown user name

but the value from telegraf query:
# telegraf --test --config testvs.conf --debug 2020-12-14T12:52:41Z I! Starting Telegraf 1.16.3 2020-12-14T12:52:41Z D! [agent] Initializing plugins 2020-12-14T12:52:41Z D! [agent] Starting service inputs 2020-12-14T12:52:41Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "RFC1213-MIB::sysName.0" 2020-12-14T12:52:41Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "CHECKPOINT-MIB::fwFrag-fragments.0" snmp,agent_host=agent_ip,host=telegraf_hostname,hostname=1348648 fwFrag-fragments=1348649i 1607950361000000000 2020-12-14T12:52:41Z D! [agent] Stopping service inputs 2020-12-14T12:52:41Z D! [agent] Input channel closed 2020-12-14T12:52:41Z D! [agent] Stopped Successfully snmp,agent_host=agent_ip,host=telegraf_hostname,hostname=915631 fwFrag-fragments=915632i 1607950361000000000

content of testvs.conf
[[inputs.snmp]]
agents = [
"agent_ip",
"agent_ip"
]

timeout = "60s"
interval = "60s"
retries = 3
version = 3

sec_name = "user"
auth_protocol = "sha" # Values: "MD5", "SHA", ""
auth_password = "password"
sec_level = "authPriv" # Values: "noAuthNoPriv", "authNoPriv", "authPriv"
context_name = "ctxname_vsid10"
priv_protocol = "AES" # Values: "DES", "AES", ""
priv_password = "password"

[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true

[[inputs.snmp.field]]
name = "fwFrag-fragments"
oid = "CHECKPOINT-MIB::fwFrag-fragments.0"

Am I hitting a bug? I have of cource checked that credentials matches in the two outputs, and regardless the hostname should not be an integer

Regards,
Henrik

@henriknoerr
Copy link
Author

Telegraf 1.16.3 (git: HEAD c7f2172)

@henriknoerr
Copy link
Author

the above issue means that if a user enters wrong credentials to the device / telegraf config the influxdb is still being flooded with millions of unique tags which destroys series

@henriknoerr
Copy link
Author

ok - I think someone smarter than me described the issue here: #8242

@Hipska
Copy link
Contributor

Hipska commented Feb 16, 2021

Duplicates #7929

@Hipska Hipska closed this as completed Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants