Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP NetInventory returns wrong ports and doesn't report all connected devices #603

Open
OnSlbWXt opened this issue Feb 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@OnSlbWXt
Copy link

OnSlbWXt commented Feb 13, 2024

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

NetInventory Task returns wrong port numbers for connections and doesn't list all connections with Unifi-Switches.

Issues this causes:

  • Phantom hubs are created in GLPI
  • Phantom networks are created in GLPI

netinventory Only shows 2 of the 4 connected devices, and all on port 3, while nothing is actually connected on port.
See below.

To reproduce

  1. glpi-netinventory --community [...] --host [...] snmp-walk.walk.txt
  2. see wrong output inventory.xml.txt

Expected behavior

For all connections to be displayed and on the correct ports.
Here is a somewhat fixed xml, where I manually entered the connected MAC addresses where they belong. (Port 9 being the upstream port)
inventory_fixed.xml.txt
The correct port information can be found under SNMP node 1.3.6.1.2.1.17.4.3.1 or 1.3.6.1.2.1.17.7.1.2.2.1
image

Operating system

Linux

GLPI Agent version

1.7, Nightly build (git version in additional context below)

GLPI version

10.0.12, Not applicable

GLPIInventory plugin or FusionInventory for GLPI plugin version

GLPI Inventory v1.3.4, Not applicable

Additional context

GLPI agent: ea45347 and 1.7.1-1 are affected

The snmp walks are slightly edited. serialnumber has been zeroed and MACs have been anonymized by zeroing the first 5 blocks.

@OnSlbWXt OnSlbWXt added the bug Something isn't working label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant