Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26350

fping not working in Alpine Zabbix server container images

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • None
    • Packages (C)
    • None
    • Sprint candidates
    • 0.5

      First, let me say that I think this is similar to ZBX-26004, which has been closed, but I don't think the issue was addressed.

      The issue is that fping doesn't have the suid bit set in the Alpine Zabbix server container, so ping attempts (using the standard "icmpping" Item) fail with an error like the following:

      /usr/sbin/fping: can't create socket (must run as root?)

      We are currently using this container: docker.io/zabbix/zabbix-server-mysql:alpine-7.0.10

      But the issue appears to be with all recent Alpine server or proxy containers. And it appears that it is due to a change that was introduced in the alpine 3.16 release. Prior to that, the suid bit was set for the fping binary. In the attached file (screenshot1.jpg), you can see the difference between alpine 3.15 and 3.16.

      We are able to get around this issue by setting the permissions on the fping binary (see the bottom of the issue reported here for an example), but we were thinking that this might be something that you can fix in the alpine Zabbix server and proxy containers.

        1. image-2025-04-28-11-57-23-439.png
          73 kB
          Marks Sunins
        2. screenshot1.jpg
          202 kB
          Blake Basom

            msunins Marks Sunins
            blake.basom Blake Basom
            Team I
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: