snmpbulkwalk -v2c -c public -Cr25 -On x.y.z.t 1.3.6.1.2.1.1.3.0
I get an *instant* (< 0.1s) response. However, if I issue the following command towards the snmp_exporter (port:9116):
curl 'my_machine:9116/snmp?module=if_mib&target=x.y.z.t'
it "hangs" and after 120s I get a 'Request timeout (120s)' exception.
I'm running the following components:
- Ubuntu 18.04 "Bionic"
- go version: 1.13.4
- snmp_exporter version: 0.15.0
- prometheus version: 2.14.0
What am I doing wrong here??????
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/16d145d4-6385-4201-8392-ec19dc41d7ac%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/16d145d4-6385-4201-8392-ec19dc41d7ac%40googlegroups.com.
Hi Brian!Thanks for a very prompt reply :)Yes - issuing the following :snmpget -v2c -c public -On 172.30.10.251 1.3.6.1.2.1.1.3.0andsnmpget -v2c -c public -On 172.30.10.251 1.3.6.1.2.1.31.1.1.1.6.40are indeed *instantaneous* and returns one value each.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7e83b13d-91f6-47cf-90e1-2f7c0788a448%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/7e83b13d-91f6-47cf-90e1-2f7c0788a448%40googlegroups.com.
Hi Brian!Sample output rows below:DEBU[4400] Scraping target '172.30.14.251' with module 'if_mib' source="main.go:87"
DEBU[4400] Getting 2 OIDs from target "172.30.14.251" source="collector.go:126"
DEBU[4430] Scraping target '172.30.10.251' with module 'if_mib' source="main.go:87"
DEBU[4430] Getting 2 OIDs from target "172.30.10.251" source="collector.go:126"
INFO[4460] Error scraping target 172.30.14.251: error getting target 172.30.14.251: Request timeout (after 3 retries) source="collector.go:211"
DEBU[4460] Scrape of target '172.30.14.251' with module 'if_mib' took 180.015173 seconds source="main.go:98"
INFO[4490] Error scraping target 172.30.10.251: error getting target 172.30.10.251: Request timeout (after 3 retries) source="collector.go:211"
DEBU[4490] Scrape of target '172.30.10.251' with module 'if_mib' took 180.004774 seconds source="main.go:98"
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e1f17c8d-efa3-4012-b9f2-8ae21504a2e9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e1f17c8d-efa3-4012-b9f2-8ae21504a2e9%40googlegroups.com.
It's version 0.15.0 of the snmp_exporter when I issue the snmp_exporter --version command
is it an old version?
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5964e18d-5485-47bb-afc0-436adbda23d3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5964e18d-5485-47bb-afc0-436adbda23d3%40googlegroups.com.
Hi Brian!I just did that and I think I "know" what's wrong here. I'm running this in a VBOX VM with two interfaces, enp0s3 and enp0s8. enp0s8 is a bridged network adapter connecting to the switches over an openvpn/tap interface. When I start the snmp_exporter and invoke a tcpdump I can see UDP traffic on the enp0s3 interface - whoever the switches are accessed over the bridged interface (enp0s8)... Hmmmm - how can we solve this?
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/40cc8b6f-8af4-44f4-8368-0bf0b8bb92b7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/40cc8b6f-8af4-44f4-8368-0bf0b8bb92b7%40googlegroups.com.
Hmmmm, maybe. however it seems "odd" that I'm still able to scrape physical hosts residing on the 172.30.15.0 net using the node_exporter from the same Prometheus server instance. The fact that I'm also able to perform snmpget/snmpwalk operations towards to switches I'm currently unable to scrape with snmp_exporter makes me feel a 'little lost' here... ... ...
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/12820f7f-7a5e-40ec-9655-ec1ecaad5091%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/12820f7f-7a5e-40ec-9655-ec1ecaad5091%40googlegroups.com.
Hi Brian! yes - this is is the case. Everything Prometheus/Grafana related is run in the same VM. Everything else is working "as advertised" - it's only the snmp_exporter that fails...
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/daa04d62-2b5c-4b24-a905-2c829ee6384f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/daa04d62-2b5c-4b24-a905-2c829ee6384f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/daa04d62-2b5c-4b24-a905-2c829ee6384f%40googlegroups.com.
Hi again Brian!Sorry for bothering you again with this :( I get the feeling I miss something VERY obvious here. What's very interesting though, is that when I use the snmp_exporter UI and use the values 172.30.10.251/if_mib I get an INSTANT response from the tcpdump command below BUT the UI times out???!!! The UI obviously sends the correct parameters and GETS a response according to tcpdump but the snmp_exporter times out. Please have a look below...tcpdump -i any -nn port snmp(The following lines are the result from the UI submit)tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 262144 bytes
13:02:53.735061 IP 10.0.2.15.51148 > 172.30.10.251.161: GetRequest(45) .1.3.6.1.2.1.1.3.0 .1.3.6.1.2.1.31.1.1.1.6.40
13:02:53.740890 IP 10.0.2.2.161 > 10.0.2.15.51148: GetResponse(54) .1.3.6.1.2.1.1.3.0=174994816 .1.3.6.1.2.1.31.1.1.1.6.40=319439595564
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bcab208d-2178-4460-83c5-e25a74c5e7eb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/bcab208d-2178-4460-83c5-e25a74c5e7eb%40googlegroups.com.
Hi Brian,I hear what you're saying and you're probably right. However, I'm puzzled about the fact that the "ordinary" SNMP-client tools such as snmgget and snmpwalk works without a glitch and the responses are sub-second... Could it be I'm missing some intricate GO-dependency here?
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/54cb8139-a759-4cd1-ab81-b58497c338ca%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAHJKeLoXWTxfyat%3Dv6tiVC3C0-sbBNvkqX%2B90uV5XJxh%3DkcAmw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/54cb8139-a759-4cd1-ab81-b58497c338ca%40googlegroups.com.