Description
Q-BRIDGE-MIB::dot1qVlanStaticUntaggedPorts reports a hex string which is converted to a bit map which idicates ports which are part of a vlan.
But bit 0 reports port 1, bit 1 reports port 2,...
So every port is off by one and displayes the vlan of the previous port when $vlan_ifindex_min is used while port 1 is not in the first vlan
This fixes the issue for me on hundreds of devices
Which exactly devices? (what works for you, breaks for many other and vice versa)
Attach debug output for:
./discovery.php -d -m ports,vlans -h <device>
./poller.php -d -m ports -h <device>