fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
361 stars 148 forks source link

Inter-switch mess up for HP ProCurve switches, LLDP misinterpretation? #1723

Open marcogaio opened 8 years ago

marcogaio commented 8 years ago

In my network i use mostly HP Switches, series 26XX, 28XX and 29XX: on these switches, LLDP is enabled by default, but FI still misinterpret SNMP data and create many 'hub' network devices (on root entity), moving devices between them (and hogging the database).

Raw SNMP data and XML FI data obtained with: root@brucaliffo:~# snmpwalk -Os -c public -v 2c tinca > /tmp/tinca_raw.snmp root@brucaliffo:~# fusioninventory-netinventory --credentials version:2c,community:public --host tinca > /tmp/tinca_raw.xml Use of uninitialized value $ip in string eq at /usr/share/fusioninventory/lib/FusionInventory/Agent/Tools/Hardware.pm line 1282.

Can be sent in private.

I hope this can help. Thanks.

ddurieux commented 8 years ago

What version of agent you use?

marcogaio commented 8 years ago

Sorry, i was a bit busy for my newborn Chiara. ;-)

And again, sorry, i think that on XML there's the FI version...

I'm using '1:2.3.10.1-1' on debian jessie, from standard repo, and '1:2.3.16-1' on debian wheezy, from FI repo.

I've noted now that the FI repo now have the jessie packages, so i'm just switched to '1:2.3.10.1-1' also on jessie.

ddurieux commented 8 years ago

Try with more recent version of agent

marcogaio commented 8 years ago

As just stated i'm using version 1:2.3.16-1, the latest debian packaged one. Newer there's only the next minor revision 2.3.17.

I've to upgrade by hand? Or i can try simply to apply this patch by hand, to give it a try? https://github.com/fusioninventory/fusioninventory-agent/commit/a4aa893fb0f6afbb3bb907c56ae7ce13523a6154

ddurieux commented 8 years ago

I think you can apply manually because there is not lot of changes

marcogaio commented 8 years ago

Ok, diff applied manually, but still roughly all networks devices goes into 'hub' unmanaged devices.

Seems the trouble came from the trunk definition, not the VLAN.

Now i've to go, but tomorrow, if needed, i can send some data (SMTP raw output, FI XML, GLPI print screen).

Say me...

narfight commented 7 years ago

I have the same problem with my switch. How can you help you (XML, print-screen, ...)

ddurieux commented 7 years ago

The XML of all switches + list of devices moving

narfight commented 7 years ago

Send by mail

narfight commented 7 years ago

Did you receive my email ?

marcogaio commented 7 years ago

Sorry for the late answer.

I'm in the same state: i've sent to David the logs, but never get feedback back.

devtom30 commented 7 years ago

Hello, Maybe you can send me the files ? I will have a look.

marcogaio commented 7 years ago

I think file like that can contain too much ''sensitive'' data to attach to a public bug report like this.

Can i send in private? my email is gaio (at) sv (dot) lnf (dot) it . thanks.

marcogaio commented 7 years ago

Just for reference, some example files sent to Thomas via private email.

jonatangobbato commented 7 years ago

hello, i have the same issue with HP Switches, models 1920, 1910 and 5130. there are any sollution for this? GLPI Version: 9.1.6 Fusion Inventory Version: '9.1+1.1 SNAPSHOT' Fusion Inventort Agent: 2.3.21

Thanks