I have created a new docker image with setcap cap_net_raw+ep /path/to/blackbox_exporter as mentioned here https://github.com/prometheus/blackbox_exporter/issues/689. Tried as root as well as setcap cap_net_raw+ep . Most of the public urls or Ip i dont have issues except my internal 3 server ip only one works fine, rest two ips i can ping publicly. After running the tcpdump from inside docker container for the two public ip address i am not getting echo-reply doesn't come back. Ping works fine from inside container but why not the blackbox!! As mentioned bt multiple threads if tcpdump fails then its network issue probably. On Saturday, October 17, 2020 at 2:26:59 PM UTC+1 [email protected] wrote:
> On Saturday, 17 October 2020 11:49:36 UTC+1, Amit Das wrote: > >> ts=2020-10-17T10:06:07.696444967Z caller=main.go:119 module=icmp >> target=172.0.16.90 level=info msg="Creating ICMP packet" seq=45267 id=5018 >> ts=2020-10-17T10:06:07.696464706Z caller=main.go:119 module=icmp >> target=172.0.16.90 level=info msg="Writing out packet" >> ts=2020-10-17T10:06:07.696590348Z caller=main.go:119 module=icmp >> target=172.0.16.90 level=info msg="Waiting for reply packets" >> ts=2020-10-17T10:06:12.696498118Z caller=main.go:119 module=icmp >> target=172.0.16.90 level=warn msg="Timeout reading from socket" err="read >> ip4 0.0.0.0: i/o timeout" >> ts=2020-10-17T10:06:12.696736957Z caller=main.go:304 module=icmp >> target=172.0.16.90 level=error msg="Probe failed" >> duration_seconds=5.000476818 >> > > Sorry, scrub that. It looks like your machine *did* send the packet after > all. Use tcpdump inside the container to confirm it: > > tcpdump -i eth0 -nn host x.x.x.x > > If a echo-request packet is sent but an echo-reply doesn't come back, then > that's a networking problem, nothing to do with blackbox_exporter. > > If a packet comes back according to tcpdump but blackbox exporter doesn't > see it, then that requires further investigation. There was something > weird observed here: > https://github.com/prometheus/blackbox_exporter/issues/360 > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/97373bcc-ec91-4e52-9c21-caeb9a1b9b80n%40googlegroups.com.

