fusioninventory / fusioninventory-agent

FusionInventory Agent
http://fusioninventory.org/
GNU General Public License v2.0
251 stars 125 forks source link

Network inventory not being generated #928

Closed glassworksvfx closed 3 years ago

glassworksvfx commented 3 years ago

Now I might be doing this wrong but I have the majority of my switches showing up fine however this one infiniband switch just does not get added to the database.

It generates the xml file fine when I run it on command line. Either of these two work fine:

fusioninventory-netinventory --host 172.16.10.171 \ --credentials version:2c,community:public

fusioninventory-netinventory --host 172.16.10.171 \ --credentials version:1,community:public

The network discovery task gives the following in the log:

scanning 172.16.10.171
scanning 172.16.10.171 with SNMP, credentials 1: success
scanning 172.16.10.171 with netbios: no result
scanning 172.16.10.171 with echo ping: success
scanning 172.16.10.171 in arp table: success

When the network inventory task runs it does not show in the list ear marked for inventory and hence does not get added to the database. From what I can see that associated SNMP credentials are correct and I tried every possible combination but can’t see what I’m missing. Can you maybe point me into a direction what I might be missing?

GLPI 9.5.4 FusionInventory 9.5+3.0

g-bougard commented 3 years ago

Hi @glassworksvfx probably your device is not fully supported and the XML is missing some information. If this is the case, you may found the device in the ignored during import list in the fusioninventory plugin. can you share the CONTENT -> DEVICE -> INFO xml node ?

glassworksvfx commented 3 years ago

Here you go:

 <CONTENT>
    <DEVICE>
      <INFO>
        <COMMENTS>Voltaire agent 6.00</COMMENTS>
        <ID>0</ID>
        <MAC>30:78:30:30:31:66</MAC>
        <NAME>4036E-4AFC</NAME>
        <TYPE />  <UPTIME>161 days, 09:15:12.67</UPTIME>
      </INFO>
g-bougard commented 3 years ago

Indeed, it missing TYPE and SERIAL. As TYPE is missing you may just need to add a line for your device in the sysobject.ids file. See there: https://github.com/fusioninventory/sysobject.ids

glassworksvfx commented 3 years ago

Thank you very much Guillaume. Added two issues.