Closed kofe88 closed 1 year ago
You should tyry with latest GLPI 10 nightly build, some of issues are already fixed.
Also, please avoid screenshot for logs and XML contents, that make logs difficult to read, and we can use XML file to quickly test.
@trasher
Yes, I'm sorry, I'm attaching xml and log.
logs
[2023-01-11 10:30:57] glpisqllog.WARNING: DBmysql::query() in /var/www/html/glpi/src/DBmysql.php line 404
*** MySQL query warnings:
SQL: SELECT `glpi_computers`.`id`, `glpi_networkports`.`id` AS `portid` FROM `glpi_computers` LEFT JOIN `glpi_networkports` ON (`glpi_computers`.`id` = `glpi_networkports`.`items_id` AND `glpi_networkports`.`itemtype` = 'Computer') WHERE (`glpi_networkports`.`mac` IN ('e8:f7:24:9a:34:70')) AND (`glpi_networkports`.`logical_number` = 'GigabitEthernet1/0/47')
Warnings:
1292: Truncated incorrect DECIMAL value: 'GigabitEthernet1/0/47'
Backtrace :
src/DBmysqlIterator.php:112
src/DBmysql.php:1056 DBmysqlIterator->execute()
src/RuleImportAsset.php:538 DBmysql->request()
src/Rule.php:1649 RuleImportAsset->findWithGlobalCriteria()
src/Rule.php:1507 Rule->checkCriterias()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/NetworkPort.php:251 RuleCollection->processAllRules()
src/Inventory/Asset/NetworkPort.php:514 Glpi\Inventory\Asset\NetworkPort->handleLLDPConnection()
src/Inventory/Asset/NetworkPort.php:538 Glpi\Inventory\Asset\NetworkPort->handleConnections()
src/Inventory/Asset/NetworkPort.php:528 Glpi\Inventory\Asset\NetworkPort->portChanged()
src/Inventory/Asset/InventoryNetworkPort.php:499 Glpi\Inventory\Asset\NetworkPort->portUpdated()
src/Inventory/Asset/InventoryNetworkPort.php:119 Glpi\Inventory\Asset\NetworkPort->handleUpdates()
src/Inventory/Asset/NetworkPort.php:690 Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
src/Inventory/Asset/NetworkPort.php:523 Glpi\Inventory\Asset\NetworkPort->handlePorts()
src/Inventory/Asset/MainAsset.php:862 Glpi\Inventory\Asset\NetworkPort->handle()
src/Inventory/Asset/MainAsset.php:782 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/Inventory/Asset/NetworkEquipment.php:222 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/RuleImportAsset.php:950 Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
src/Rule.php:1510 RuleImportAsset->executeActions()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/MainAsset.php:564 RuleCollection->processAllRules()
src/Inventory/Inventory.php:702 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:337 Glpi\Inventory\Inventory->handleItem()
...inc/communicationnetworkinventory.class.php:156 Glpi\Inventory\Inventory->doInventory()
plugins/glpiinventory/hook.php:1096 PluginGlpiinventoryCommunicationNetworkInventory->import()
src/Plugin.php:1521 plugin_glpiinventory_network_inventory()
src/Inventory/Request.php:278 Plugin::doHookFunction()
src/Inventory/Request.php:250 Glpi\Inventory\Request->network()
src/Inventory/Request.php:98 Glpi\Inventory\Request->networkInventory()
src/Agent/Communication/AbstractRequest.php:305 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:242 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
front/inventory.php:92 Glpi\Agent\Communication\AbstractRequest->handleRequest()
plugins/glpiinventory/front/communication.php:72 include_once()
plugins/glpiinventory/index.php:45 include_once()
{"user":"inventory@1a148d7e3c63"}
[2023-01-11 11:15:29] glpiphplog.WARNING: *** PHP Warning (2): Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php at line 168
Backtrace :
src/Inventory/Asset/InventoryNetworkPort.php:116 Glpi\Inventory\Asset\NetworkPort->cleanUnmanageds()
src/Inventory/Asset/NetworkPort.php:690 Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
src/Inventory/Asset/NetworkPort.php:523 Glpi\Inventory\Asset\NetworkPort->handlePorts()
src/Inventory/Asset/MainAsset.php:862 Glpi\Inventory\Asset\NetworkPort->handle()
src/Inventory/Asset/MainAsset.php:782 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/Inventory/Asset/NetworkEquipment.php:222 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/RuleImportAsset.php:950 Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
src/Rule.php:1510 RuleImportAsset->executeActions()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/MainAsset.php:564 RuleCollection->processAllRules()
src/Inventory/Inventory.php:702 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:337 Glpi\Inventory\Inventory->handleItem()
...inc/communicationnetworkinventory.class.php:156 Glpi\Inventory\Inventory->doInventory()
plugins/glpiinventory/hook.php:1096 PluginGlpiinventoryCommunicationNetworkInventory->import()
src/Plugin.php:1521 plugin_glpiinventory_network_inventory()
src/Inventory/Request.php:278 Plugin::doHookFunction()
src/Inventory/Request.php:250 Glpi\Inventory\Request->network()
src/Inventory/Request.php:98 Glpi\Inventory\Request->networkInventory()
src/Agent/Communication/AbstractRequest.php:305 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:242 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
front/inventory.php:92 Glpi\Agent\Communication\AbstractRequest->handleRequest()
plugins/glpiinventory/front/communication.php:72 include_once()
plugins/glpiinventory/index.php:45 include_once()
[2023-01-11 11:34:05] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "capacity" in /var/www/html/glpi/src/Inventory/Asset/Device.php at line 143
Backtrace :
src/Inventory/Asset/Drive.php:121 Glpi\Inventory\Asset\Device->handle()
src/Inventory/Asset/MainAsset.php:862 Glpi\Inventory\Asset\Drive->handle()
src/Inventory/Asset/MainAsset.php:782 Glpi\Inventory\Asset\MainAsset->handleAssets()
src/RuleImportAsset.php:950 Glpi\Inventory\Asset\MainAsset->rulepassed()
src/Rule.php:1510 RuleImportAsset->executeActions()
src/RuleCollection.php:1591 Rule->process()
src/Inventory/Asset/MainAsset.php:564 RuleCollection->processAllRules()
src/Inventory/Inventory.php:702 Glpi\Inventory\Asset\MainAsset->handle()
src/Inventory/Inventory.php:337 Glpi\Inventory\Inventory->handleItem()
src/Inventory/Request.php:360 Glpi\Inventory\Inventory->doInventory()
src/Inventory/Request.php:90 Glpi\Inventory\Request->inventory()
src/Agent/Communication/AbstractRequest.php:305 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:242 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
front/inventory.php:92 Glpi\Agent\Communication\AbstractRequest->handleRequest()
plugins/glpiinventory/front/communication.php:72 include_once()
plugins/glpiinventory/index.php:45 include_once()
[2023-01-11 11:14:57] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: array_is_list(): Argument #1 ($array) must be of type array, string given in /var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php/Converter.php at line 1441
Backtrace :
...ect/inventory_format/lib/php/Converter.php:1441 array_is_list()
...ject/inventory_format/lib/php/Converter.php:380 Glpi\Inventory\Converter->convertNetworkInventory()
...ject/inventory_format/lib/php/Converter.php:323 Glpi\Inventory\Converter->convertTo01()
src/Inventory/Inventory.php:141 Glpi\Inventory\Converter->convert()
src/Inventory/Request.php:265 Glpi\Inventory\Inventory->setData()
src/Inventory/Request.php:250 Glpi\Inventory\Request->network()
src/Inventory/Request.php:98 Glpi\Inventory\Request->networkInventory()
src/Agent/Communication/AbstractRequest.php:305 Glpi\Inventory\Request->handleAction()
src/Agent/Communication/AbstractRequest.php:242 Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
front/inventory.php:92 Glpi\Agent\Communication\AbstractRequest->handleRequest()
plugins/glpiinventory/front/communication.php:72 include_once()
plugins/glpiinventory/index.php:45 include_once()
@trasher I tried a clean install of glpi and the glpiinventory plugin, and this xml file was successfully imported. Is there any way to delete everything created by these plugins and reinstall glpiinventory?
This ha snothing to do with the plugin. You should just drop the networkequiment, and run inventory again.
This ha snothing to do with the plugin. You should just drop the networkequiment, and run inventory again.
I have already deleted this equipment several times and restarted the inventory and also tried to download it via an xml file, only 1 port is added.
This ha snothing to do with the plugin. You should just drop the networkequiment, and run inventory again.
or i need drop all networkequiment?
@trasher
I found a pattern.
The
ProCurve J4900B Switch 2626,
HP J9782A 2530-24 Switch,
HP J9775A 2530-48G Switch,
3Com Switch 4210 26-Port,
3Com Switch 4210 52-Port,
HPE OfficeConnect Switch 1920S 48G 4SFP JL382A ,
1920-24G Switch Software Version 5.20.99
are imported with all ports.
Switches 3Com Baseline Switch 2928-SFP, HP OfficeConnect Switch 1920S 24G 2SFP JL381A, HP V1910-24G Switch Software Version 5.20 Release 1111P02 are imported incorrectly.
in php logs this warnings:
[Wed Jan 11 19:47:08.507084 2023] [php:warn] [pid 99986] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 20:04:22.610739 2023] [php:warn] [pid 99900] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:22.980739 2023] [php:warn] [pid 100060] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:23.324985 2023] [php:warn] [pid 99985] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:23.818073 2023] [php:warn] [pid 100071] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:24.157813 2023] [php:warn] [pid 100011] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:24.648273 2023] [php:warn] [pid 100018] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:25.085850 2023] [php:warn] [pid 100065] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:25.421997 2023] [php:warn] [pid 99997] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:25.731004 2023] [php:warn] [pid 100039] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:29.720624 2023] [php:warn] [pid 100018] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:32.156536 2023] [php:warn] [pid 100018] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:04:32.604434 2023] [php:warn] [pid 100060] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:05:51.481978 2023] [php:warn] [pid 100039] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '107951' OR `glpi_networkports_networkports`.`networkports_id_2` = '107951')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:05:51.482809 2023] [php:warn] [pid 100039] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '107951' OR `glpi_networkports_networkports`.`networkports_id_2` = '107951')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:05:57.800303 2023] [php:warn] [pid 100090] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:05:57.801069 2023] [php:warn] [pid 100090] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:06:05.496695 2023] [php:warn] [pid 100018] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 20:06:10.270518 2023] [php:warn] [pid 99900] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '107951' OR `glpi_networkports_networkports`.`networkports_id_2` = '107951')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:06:10.271780 2023] [php:warn] [pid 99900] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:06:10.272492 2023] [php:warn] [pid 99900] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:19:06.284656 2023] [php:warn] [pid 100184] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:06.619682 2023] [php:warn] [pid 100060] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:06.957754 2023] [php:warn] [pid 100071] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:07.300220 2023] [php:warn] [pid 100158] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:07.806155 2023] [php:warn] [pid 100174] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:08.298558 2023] [php:warn] [pid 100011] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:08.773194 2023] [php:warn] [pid 100101] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:09.104259 2023] [php:warn] [pid 100160] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:09.430376 2023] [php:warn] [pid 99997] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:13.506521 2023] [php:warn] [pid 100011] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:16.156635 2023] [php:warn] [pid 100167] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:19:16.467711 2023] [php:warn] [pid 100191] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 20:20:31.445261 2023] [php:warn] [pid 100071] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 20:20:31.472878 2023] [php:warn] [pid 100071] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 20:20:31.501808 2023] [php:warn] [pid 100071] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 20:20:33.021511 2023] [php:warn] [pid 100174] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 20:20:33.027679 2023] [php:warn] [pid 100174] [client 192.168.0.52:0] PHP Warning: getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '106026' OR `glpi_networkports_networkports`.`networkports_id_2` = '106026')". in /var/www/html/glpi/src/CommonDBTM.php on line 396
[Wed Jan 11 21:13:59.426862 2023] [php:warn] [pid 100395] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:13:59.781046 2023] [php:warn] [pid 100470] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:00.107166 2023] [php:warn] [pid 100253] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:00.441614 2023] [php:warn] [pid 100477] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:00.760629 2023] [php:warn] [pid 100420] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:01.090156 2023] [php:warn] [pid 100391] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:01.425509 2023] [php:warn] [pid 100406] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:01.911629 2023] [php:warn] [pid 100352] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:02.384361 2023] [php:warn] [pid 100324] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:06.292561 2023] [php:warn] [pid 100406] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:08.517886 2023] [php:warn] [pid 100485] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:14:08.815852 2023] [php:warn] [pid 100317] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:15:37.713659 2023] [php:warn] [pid 100477] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 21:45:01.415856 2023] [php:warn] [pid 100653] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:01.753441 2023] [php:warn] [pid 100642] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:02.102609 2023] [php:warn] [pid 100585] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:02.428600 2023] [php:warn] [pid 100584] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:02.812875 2023] [php:warn] [pid 100635] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:03.181797 2023] [php:warn] [pid 100652] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:03.652521 2023] [php:warn] [pid 100583] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:04.097165 2023] [php:warn] [pid 100517] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:04.456952 2023] [php:warn] [pid 100539] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:08.324135 2023] [php:warn] [pid 100583] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:11.281994 2023] [php:warn] [pid 100653] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:45:11.681660 2023] [php:warn] [pid 100658] [client 192.168.0.52:0] PHP Warning: Undefined property: stdClass::$logical_number in /var/www/html/glpi/src/Inventory/Asset/InventoryNetworkPort.php on line 168
[Wed Jan 11 21:46:35.380384 2023] [php:warn] [pid 100660] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 21:46:39.624753 2023] [php:warn] [pid 100517] [client 192.168.0.52:0] PHP Warning: Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php on line 271
[Wed Jan 11 21:52:56.482056 2023] [php:warn] [pid 100690] [client 192.168.0.116:0] PHP Warning: Undefined array key "capacity" in /var/www/html/glpi/src/Inventory/Asset/Device.php on line 143
As already said, «You should tyry with latest GLPI 10 nightly build, some of issues are already fixed.».
Describe the bug
Hi. After upgrading from GLPI 9 > 10, and migrating from FI to GLPI-Inventory, SNMP inventrory not import network ports in switch. The snmp inventory is successful, but only the management port is loaded about the device. There are all ports in the agent logs. I tried to download the xml file manually, writes that it was successfully downloaded, but the ports in glpi do not appear on the device page. Content of xml with ports: Only management port imported.
To reproduce
Expected behavior
Import of all ports.
Operating system
Windows
GLPI Agent version
1.4
GLPI version
10.0.5
GLPIInventory plugin
1.0.6
Additional context
Also because of this, all PCs with agents are hanging on an unidentified hub and cannot determine which port of the switch they are hanging on.
There are such messages in the logs, I don't know if they are related.
php-errors.log
sql-errors.log