glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.3k stars 1.29k forks source link

No download link in inventory informations for NetDiscovery & NetInventory of Network switch #12179

Closed Tony710 closed 2 years ago

Tony710 commented 2 years ago

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

When I perform NetworkDiscovery task, The target device (switch) is found. SNMP Credentials link to de IP Range are used for SNMP Query. Device information are send to glpi Server and import rules are processed. The Device (Netgear Switch) is already register in newtwork device. -> The update rule is verified to update this device image But collected informations are not updated and it is not possible to download the inventory file xml image Also, in the glpi_networkequipments table, the last_inventory_update, snmpcredentials_id fileds are not updated. image

I have test with glpi-agent 1.3-1 and 1.4-1 - Glpi version 10.0.2 - Glpi-inventory Version 10.0.3 No errors found in log files.

To reproduce

Do Network Discorvery task to target Network device.

Expected behavior

It seems than when network device is found and update, SNMP Credentials needed to NetInventory are registrer.

Operating system

Linux

GLPI Agent version

1.3 & 1.4

GLPI version

10.0.2

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.3

Additional context

No response

g-bougard commented 2 years ago

Hi @Tony710

indeed, you're talking about 2 different problems not directly related:

  1. the download link is not shown
  2. the snmpcredentials id is not registered

What is the main problem for you ?

steph461 commented 2 years ago

For information : The inventory Computer its OK maybe the file are import *.json and not XML

printers and network xml KO

steph461 commented 2 years ago

I exported a xml file manually in the GLPI, , same issue. Th file xml is not created in the glpi and no ip

glpi-netdiscovery --debug --host 10.x.x.x.x or glpi-netinventory --debug --host 10.x.x.x.

The information are good in the cmd but the ip are not transmitted in glpi and the file XML is not created No log No php error

steph461 commented 2 years ago

In progress :

image

At the end, I have the impression there is a crash in the plugin image

So it can't download the xml file?

Molina15 commented 2 years ago

Do you have the OCS plugin activated? If so, disable it.

steph461 commented 2 years ago

Do you have the OCS plugin activated? If so, disable it.

I use glpiinventory and no OCS plugin

stonebuzz commented 2 years ago

Hi @steph461

For "snmpcredentials id is not registered" This issue is fixed by :

For "download link is not shown" I do not reproduce The link is here image

Best regards

steph461 commented 2 years ago

Hi @steph461

For "snmpcredentials id is not registered" This issue is fixed by :

For "download link is not shown" I do not reproduce The link is here image

Best regards

Thx i will test :)

steph461 commented 2 years ago

I have test with glpi last fix its ok