Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-1734

On HP-UX the interface detection can go into an endless loop

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.0.6
    • Agent (G)
    • HP-UX 10 or higher

      In src/libs/zbxsysinfo/hpux/net.c, line 79 a loop over all interfaces starts.
      If the current interface is not of type INET or INET6 in the first if within the loop, the loop continues.
      That is, if the last interface in the list is not of type INET or INET6, the loop does not stop, because
      the code to step to the next interface (lines 89 or 91) are never reached. So the agent
      stops working and only eats CPU.
      In the loop starting in 119 the continue is ok as the loop condition is part of the for ... statement.

      The patch contains also other fixes for building on HP-UX 10 and to implement system.uptime and system.boottime.

      The attached patch can be applied to version 2.0.5 and 2.0.6. Others have not been tested.

            Unassigned Unassigned
            afluegel Albert Flügel
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: