On Thu, 5 Mar 2020 11:13:22 +0700 "Agung Reza Satria" agung.reza@moratelindo.co.id wrote:
Dear Mr. Morten,
Is it possible to ignore this negative ifIndex values
Again, it's not a matter of ignoring the negative values (which aren't really meant to be negative, that's just Cacti's interpretation of them).
It's likely a matter of correlating the values between different MIBs, which may have a different ways of specifying ifIndex values. If the value is interpreted as negative when it comes from one MIB, and as a positive value when coming from another, the two cannot be correlated, and you might end up with strange or missing data.
The only way to figure out what NAV is doing here is to enable more debug logging for the parts of ipdevpoll that are working with interfaces
I'd suggest you set the following in the `[levels]` section of `logging.conf`:
nav.ipdevpoll.jobs = DEBUG nav.ipdevpoll.plugins.interfaces = DEBUG
Then run `ipdevpoll -J inventory -n HUAWEI-DEVICE-NAME-OR-IP`. Direct the output to a log file, censor whatever sensitive data you can find and attach that file to a new bug report at https://github.com/Uninett/nav/issues/new/choose
As I said, the initial thing to figure out here would be whether the problem is in NAV itself, or the low-level SNMP library. If the bug is in the latter, it will be harder to work around in NAV code.