Public bug reported:

Hi everyone,

on Ubuntu

```
$ lsb_release -rd
No LSB modules are available.
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
```,

I am using the package prometheus-blackbox-exporter, version
0.24.0-2ubuntu0.3 , and in particular its icmp prober-module to monitor
a couple other machines with ICMP ping probes. Out of the box, the
exporter packaged in this particular version of Ubuntu cannot send ICMP
pings. I did not find useful errors being logged, the monitiored hosts
are being reported as down by the exporter's `probe_success` metric
(value 0 while it should be 1), and no outgoing ICMP packets can be
observed through tcpdump (one should be sent everytime the monitoring
system queries the blackbox exporter - multiple times per minute in my
case). The cause is apparently a missing permission for low-level socket
IO. Since the systemd unit runs the exporter as user `prometheus', which
does not have elevated privileges, additional privileges, like e.g. the
capability NET_RAW, would be required.

Adding CAP_NET_RAW to the executable with the following command:
```
setcap cap_net_raw+ep /usr/bin/prometheus-blackbox-exporter
```

fixes the issue (until the next package upgrade).

This might be related to https://bugs.launchpad.net/charm-prometheus-
blackbox-exporter/+bug/1852398 on the exporter's (now obsolete IIUC)
Juju charm (which provides more background with the exporter's
documentation in https://bugs.launchpad.net/charm-prometheus-blackbox-
exporter/+bug/1852398/comments/1).

It would be great if this could be fixed; if I can provide any help, let
me know.

** Affects: prometheus-blackbox-exporter (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2118605

Title:
  icmp probes do not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/prometheus-blackbox-exporter/+bug/2118605/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to