How to Utilize ICMP to ping IP Addresses? #610
-
Unfortunately, a couple servers I want to ping don't have http/https, but I have their IP address. This setup only seems to ping HTTP/HTTPS. How do I add ICMP/IP address to it for ping purposes? Edit: I'm assuming changing to the ICMP module. Can you have more than one Prometheus/Blackbox module set/running at a time? I guess it's no big deal to convert URLs to IP and use IP exclusively. Will try changing to ICMP module and will report back. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Since it does HTTP requests, it would have to have an HTTP response, it won't do plain ICMP ping requests. At least not with the current configuration. |
Beta Was this translation helpful? Give feedback.
-
If I change the default mode from [http_2xx] to [icmp] for the Ping job, ICMP works just fine, but then it obviously won't work for sites that reject ICMP and only accept HTTP queries. I added a second job for ICMP, but it won't display either in the dashboard or the Blackbox Exporter (9115). I added all the parameters in the job to do so, I think (I just copied/pasted from the existing Ping job and tailored). So right now it's an either / or (HTTP/ICMP), and I'm trying to do/display both via two jobs in same display. |
Beta Was this translation helpful? Give feedback.
I figured it out! It was a ICMP ping permissions issue. Credit Link
My solution:
sudo nano /etc/sysctl.conf