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

Linux network interfaces discovery fails in non trivial cases

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 7.4.1
    • Agent (G)

      Steps to reproduce: (On newly install Zabbix 7.4.1)

      1. Find a host with multiple NIC and multiple naming conventions
        I used host with: eno1, enp1s0f0 and enp1s0f1, ignoring lo, br and docker
      2. Install zabbix-agent on the host, configure for the Zabbix-server to monitor
      3. Add the host using template Linux by Zabbix agent
      4. Wait for population by discovery and try to put all three interfaces on some dashboard.

      Result:

      When navigating to find the item to display, in graph or Top hosts, non of the three above is shown. Instead a fake nic is present named "enp1s0", which does not exist and collect zero data. Attempting to add an item to the host manually fails with error "Cannot find information for this network interface in /proc/net/dev".

      See Screenshots trying to populate Top hosts with net.if item ..
      ... and trying to add item manually.

      ----
      Expected:
      For me, whenever there is only one physical NIC, such as eno1, or in VM, enp1s0, everything works as expected, I can get network utilization in Top hosts and Graphs.


      Trying to collect more info I found that the command "zabbix_agentd -t net.if.discovery" I got the right interfaces. Also, obviously,  /proc/net/dev contains all the right information on the network interfaces.

            Unassigned Unassigned
            PZEN Jonas Printzén
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: