-
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 timeout when the response SRC IP is different than original request (HA Virtual IPs) #3320
Comments
Also, might be worth noting, adding the leading |
Can you run |
I'm really perplexed, all snmputils are working (had to install them locally as they aren't present in the docker container). I tested with a ruby script and i can get data from the remote host. But I can't get telegraf to get data out of the remote host. I will see if I can get |
That would help a ton, thanks |
OK, found the issue. These were run against a Cisco UCS Fabric Interconnect which has a cluster IP address that the primary Switch handles traffic for. If I used that cluster address, in telegraf, it doesn't work. Any other tool doesnt mind it (thinking its actually a gosnmp imp issue). When I change my config to point directly to a specific fabric interconnect, SNMP starts working. Closing! |
Could you open an issue with https://github.com/soniah/gosnmp |
Will do, I'm going to attempt a failing example and I'll get one open there and reference it here. |
Sounds good, I think I will reopen this issue for tracking. |
Updated title to more accurately reflect the issue. |
@danielnelson looks like this was an issue back in 2015 and has sort of stalled. Seems Juniper routers can have the same problem. Perhaps the telegraf team would be able to help them get some priority on a resolution? |
@derekmwright , i use patch (gosnmp/gosnmp@3fb2b90). |
@abaluta Glad you have this working, but if you could create the packet captures requested in gosnmp/gosnmp#47 it would be very appreciated. Here are the gosnmp docs on how to do this: https://github.com/soniah/gosnmp#packet-captures |
How do you apply that gosnmp patch? I'm uncertain as to where those 2 files would be. |
I do not know in which operating system you are making telegraf, but in FreeBSD in ports:
/usr/ports/net-mgmt/telegraf/work/gosnmp-96b8622
You have to do it by hand today.
…--
Regards,✉
Aleksey Baluta
Eurotranstelecom
tel: 380 44 333-59-81
mob: 380 67 401-98-67
On Nov 28, 2018, at 02:03, Dylan Khor ***@***.***> wrote:
How do you apply that gosnmp patch? I'm uncertain as to where those 2 files would be.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank you very much for the detailed description. I had the same problem today and solved it by configuring the IP address of the devices instead of the cluster IP address. However, I think the plugin should give a detailed log message in such a case. A timeout has nothing to do with a changing IP address. |
Though it kind of does. Correct me if I'm wrong; When using direct server return, if an endpoint fails over mid-request then any client trying to connect to it would get a timeout because it couldn't reach the original destination. |
@derekmwright @abaluta does this issue still occur on latest versions of gosnmp and Telegraf? |
Since gosnmp library has been updated in telegraf, I'm assuming this issue is resolved. Please reopen if it isn't. |
Bug report
Relevant telegraf.conf:
System info:
Ran from Docker Hub (library)
Telegraf v1.4.1 (git: release-1.4 2de7aa2)
Steps to reproduce:
docker run -v $PWD/telegraf.conf:/etc/telegraf/telegraf.conf:ro telegraf
2017-10-10T17:18:31Z E! Error in plugin [inputs.snmp]: agent remote-hostname: performing get on field hostname: Request timeout (after 3 retries)
Expected behavior:
Telegraf should be able to extract the response from the remote host when using OID numbers.
Actual behavior:
Telegraf doesn't see the response from the remote host as valid and then retries the query.
Additional info:
(I removed the "actual" hostname from this capture)
The text was updated successfully, but these errors were encountered: