-
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
Incorrect SNMPv3 password returns garbage field values but no error #7746
Comments
Any chance you could temporarily configure the device to use SNMP v2 temporarily and see if the problem persists? It will be much easier to debug without the encryption. After that could you also collect the packet captures with tcpdump as described in the troubleshooting section of the readme? |
Works fine with SNMPv2. I assumed there wouldn't be a difference because I saw examples of v2 and v3 and they all did the same thing, and not what I was getting.
I suppose I'll go try a capture now, thanks. |
Are all the values incorrect, or is it just the hostname? I notice from the example output above the values are a bit strange, all sequential integers:
|
No, they are way wrong. All over the place. I wonder if you're going to tell me what I just stumbled on. So SNMPv3, I feel is still new to even some seasoned network professionals. (I hope others are okay with that assumption.) This blog, issue, case, that led me right to the issue: I too, am quite ashamed. Just a single character off on the SHA key (or hash) apparently garbles data instead of presenting any sort of error. But I did find something in the capture that had me doubt something. Thank you for walking me through a couple troubleshooting steps and getting me here so quickly! |
Wow, I had no idea it would give you no error but the data would be wrong. Unfortunately, I don't know enough about SNMPv3 to say if that can be improved upon, I'll look into it though. |
Perhaps it can, snmpget provides an error when I attempt with an incorrect password:
|
Let's reopen this issue as a bug report about error reporting. |
This sounds very like the issue I discovered yesterday. In our case, a firmware upgrade on an SNMP target (Juniper firewall) changed the authentication requirements, and our Telegraf config was then requesting a sec_level+sec_name+auth_password which weren't accepted.
Where authentication fails (and perhaps in other situations) the SNMP target returns a
That I've not gone into the code there but I presume that the response handler (a) doesn't discriminate between |
Closing because this seems to be a duplicate of #7512 |
I am attempting to obtain a hostname from SNMP but the results continue to be returned as numbers.
Config file:
Results from telegraf:
I have tested with SNMPGET, SNMPWALK, SNMPTRANSLATE and cannot find any correlation to the number I get back from Telegraf.
I have tried to update my SNMP OID to SNMPv2-MIB::sysName, SNMPv2-MIB::sysName.0, and RFC1213-MIB::sysName.0 as shown in the original example that had me building this solution:
https://techexpert.tips/grafana/grafana-monitoring-snmp-devices/
I have tried to do with after installing many many Cisco MIBs and placing them in /usr/shared/snmp/mibs with the others, and adding them to /usr/shared/snmp.conf. I have tried rebulding a CENTOS 7 server again from scratch and only installing Telegraf (I have the full TIG-stack on the other) but telegraf --test has the same results.
I expect to see hostname=SWITCH01 or hostname=SWITCH.domain.com as I see for so many other examples on the web. I'm sure I did something wrong somewhere or missed a key configuration point. I do have the whole TIG-stack working for linux stats, and for JSON-based ACI switch stats. I have tried a new database and users for InfluxDB but this problem seems to happen way before I get that far.
Thanks!
The text was updated successfully, but these errors were encountered: