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.