glpi icon indicating copy to clipboard operation
glpi copied to clipboard

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

Open Tony710 opened this issue 2 years ago • 8 comments

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

Tony710 avatar Jul 08 '22 16:07 Tony710

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 ?

g-bougard avatar Jul 11 '22 07:07 g-bougard

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

printers and network xml KO

steph461 avatar Jul 15 '22 13:07 steph461

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 avatar Jul 15 '22 17:07 steph461

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?

steph461 avatar Jul 18 '22 16:07 steph461

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

Molina15 avatar Aug 03 '22 06:08 Molina15

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

I use glpiinventory and no OCS plugin

steph461 avatar Aug 09 '22 06:08 steph461

Hi @steph461

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

  • https://github.com/glpi-project/glpi/pull/12181

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

Best regards

stonebuzz avatar Aug 09 '22 07:08 stonebuzz

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 avatar Aug 09 '22 07:08 steph461

I have test with glpi last fix its ok

steph461 avatar Aug 24 '22 10:08 steph461