Giter Site home page Giter Site logo

glpi-project / glpi-inventory-plugin Goto Github PK

View Code? Open in Web Editor NEW
45.0 13.0 26.0 56.31 MB

GLPI Inventory plugin

License: GNU Affero General Public License v3.0

PHP 58.68% CSS 1.77% JavaScript 38.07% Ruby 0.13% Mustache 0.19% HTML 0.64% Shell 0.16% Perl 0.05% Twig 0.32%

glpi-inventory-plugin's Introduction

GLPI Inventory Plugin

This plugin handles various types of tasks for GLPI agents:

  • Network discovery and inventory (SNMP)
  • Software deployment
  • VMWare ESX host remote inventory
  • Collect data (files, Windows registry, WMI)

Computer and Network inventories themselves are done on GLPI side; the plugin only handle network related tasks.

Third-party icons and images

Some icons used in the project comes from the following set of graphics licensed:

Additional resources

glpi-inventory-plugin's People

Contributors

adrienclairembault avatar ameurou avatar anthodingo avatar btry avatar cconard96 avatar cedric-anne avatar cyrilus avatar ddurieux avatar dependabot[bot] avatar diohz0r avatar eduardomozart avatar flegastelois avatar g-bougard avatar goneri avatar guillaumelecerf avatar guillomovitch avatar jmdoleans avatar kiniou avatar matsimon avatar mohierf avatar orthagh avatar po1vo avatar pr-gh avatar remicollet avatar rom1-b avatar stillru avatar stonebuzz avatar trasher avatar tsmr avatar wolvverine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glpi-inventory-plugin's Issues

Task ESX does not start

I can't run ESX tasks

Does ESX tasks work with the GLPI plugin?

I have several Printer and Network Tasks Its OK but ESX ko

The task does not start
image

image

issues Glpi ? Plugin ? Agent ? i dont know

GLPI 10.0 Last FIX 20220507
GLPI plugin 1.0.0
GLPI Agent 1.3-gita35bb063

[glpi inventory 1.0.0-rc5] Task jobs migration to glpiinventory and impossible to view job configuration

The taskjobs from the fusion plugin to glpi inventory are migrated well but there is a message when I viewed the stain.
If I create a new task jobs, it works

Is it planned to migrate the task jobs?

image

[2022-03-10 14:14:29] glpiphplog.CRITICAL:   *** Uncaught Exception Error: Class "PluginFusioninventoryIPRange" not found in /var/www/html/glpi10beta/marketplace/glpiinventory/inc/taskjob.class.php at line 848
  Backtrace :
  ...ace/glpiinventory/inc/taskjobview.class.php:510 PluginGlpiinventoryTaskjob->checkConfiguration()
  ...ace/glpiinventory/inc/taskjobview.class.php:161 PluginGlpiinventoryTaskjobView->showForm()
  marketplace/glpiinventory/ajax/taskjob_form.php:52 PluginGlpiinventoryTaskjobView->ajaxGetForm()
``

Deploy packages fail if agent version change

If there is a pending package deployment task job for an agent, but the agent has changed version since last inventory :

  • The old agent in GLPI database is deleted, and a new one is created (new ID)
  • The task isn't executed, agent logs says "[info] No Deploy job enabled or Deploy support disabled server side."
  • The job execution status become unresponsive for few seconds/minutes, and then the actor disappear from execution status
  • The task is still showed in Computer > Package deploy tab but can't be developed.

Tested with agents :

  • FusionInventory Agent 2.4.6 => GLPI Agent 1.2
  • GLPI Agent 1.2 => FusionInventory Agent 2.4.6
  • FusionInventory Agent 2.4.6 => FusionInventory Agent 2.6

Task discovery devices network - GLPI V10

Hi,

I config my glpi v10 with glpi inventory plugin, but the discovery snmp, discovery network not work for me.
The discovery not collect nothing in mey network, 0 discoverys like printers, routers etc.

Bellow prints of my conf:

Captura de tela 2022-05-20 162910
Captura de tela 2022-05-20 162931
Captura de tela 2022-05-20 163018
Captura de tela 2022-05-20 163043
Captura de tela 2022-05-20 163119

Migration of the plugin : Error: Duplicate entry xxxxxxxx for key 'unicity'

by performing several migrations of the plugin, I have an sql error

[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('NetworkEquipment', '22', 'otherserial', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'NetworkEquipment-22-otherserial' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '57', 'locations_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-57-locations_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.069\", 6.06Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '77', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-77-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.030\", 6.07Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '214', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-214-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.090\", 6.07Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '21', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-21-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.073\", 6.07Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '235', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-235-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.169\", 6.08Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '236', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-236-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.004\", 6.08Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '257', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-257-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.167\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '258', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-258-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.002\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '261', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-261-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.013\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '259', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-259-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.002\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '262', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-262-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.002\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '263', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-263-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.003\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '264', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-264-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.004\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '265', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-265-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.003\", 6.09Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '268', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-268-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.116\", 6.10Mio)"} 
[2022-03-15 13:28:01] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '269', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-269-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.003\", 6.10Mio)"} 
[2022-03-15 13:28:02] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '296', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-296-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.181\", 6.10Mio)"} 
[2022-03-15 13:28:02] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '297', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-297-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.002\", 6.10Mio)"} 
[2022-03-15 13:28:02] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Computer', '298', 'states_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Computer-298-states_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.003\", 6.10Mio)"} 
[2022-03-15 13:28:03] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '264', 'locations_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-264-locations_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.868\", 6.15Mio)"} 
[2022-03-15 13:28:03] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '266', 'locations_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-266-locations_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.005\", 6.15Mio)"} 
[2022-03-15 13:28:03] glpisqllog.ERROR: DBmysql::query() in /var/www/html/glpi10beta/src/DBmysql.php line 367
  *** MySQL query error:
  SQL: INSERT INTO `glpi_lockedfields` (`itemtype`, `items_id`, `field`, `date_creation`, `date_mod`) VALUES ('Printer', '270', 'locations_id', '2022-03-15 13:27:55', '2022-03-15 13:27:55')
  Error: Duplicate entry 'Printer-270-locations_id' for key 'unicity'
  Backtrace :
  src/DBmysql.php:1295                               
  src/CommonDBTM.php:657                             DBmysql->insert()
  src/CommonDBTM.php:1249                            CommonDBTM->addToDB()
  ...ace/glpiinventory/install/update.native.php:552 CommonDBTM->add()
  marketplace/glpiinventory/hook.php:327             pluginGlpiinventoryUpdateNative()
  src/Plugin.php:773                                 plugin_glpiinventory_install()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:486                 call_user_func()
  src/Marketplace/Controller.php:405                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()
  {"user":"7@srv-glpi","mem_usage":"0.019\", 6.15Mio)"} 

GLPI 10.0.1+ Glpi Inventory : The table glpi_plugin_glpiinventory_taskjoblogs generation lot of log

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.1

Bug description

Hello,

The table glpi_plugin_glpiinventory_taskjoblogs genration lot of log, does the automatic action exist for these actions ?
In automatic actions, the action does not exist

And In the plugin menu, the function dont exist

In this table, I have 3176312 line ( example from 20220531 to 20220609)
For the moment, I purge in manual

Example in the table :
image

image
image
image

Relevant log output

no log

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

Informations sur le système, l'installation et la configuration
GLPI 10.0.1 (/glpi => /var/www/html/glpi)
Installation mode: TARBALL
Current language:fr_FR
Server
 
Operating system: Linux srv-glpi 3.10.0-1160.62.1.el7.x86_64 glpi-project/glpi#1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
PHP 8.0.19 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
	calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml,
	mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, sockets, sodium, sqlite3,
	standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="5M" safe_mode="" session.save_handler="files"
	upload_max_filesize="10M" 
Software: Apache/2.4.6 (CentOS) PHP/8.0.19 ()
	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
Server Software: MariaDB Server
	Server Version: 10.4.24-MariaDB
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: root@localhost/glpi
	Host info: Localhost via UNIX socket

PHP version (8.0.19) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.4.24) is supported.
The log file has been created successfully.
Write access to /var/www/html/glpi/files/_cache has been validated.
Write access to /var/www/html/glpi/config has been validated.
Write access to /var/www/html/glpi/files/_cron has been validated.
Write access to /var/www/html/glpi/files has been validated.
Write access to /var/www/html/glpi/files/_dumps has been validated.
Write access to /var/www/html/glpi/files/_graphs has been validated.
Write access to /var/www/html/glpi/files/_lock has been validated.
Write access to /var/www/html/glpi/files/_pictures has been validated.
Write access to /var/www/html/glpi/files/_plugins has been validated.
Write access to /var/www/html/glpi/files/_rss has been validated.
Write access to /var/www/html/glpi/files/_sessions has been validated.
Write access to /var/www/html/glpi/files/_tmp has been validated.
Write access to /var/www/html/glpi/files/_uploads has been validated.
Web access to files directory is protected
For security reasons, SELinux mode should be Enforcing.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/html/glpi
GLPI_CONFIG_DIR: /var/www/html/glpi/config
GLPI_VAR_DIR: /var/www/html/glpi/files
GLPI_MARKETPLACE_DIR: /var/www/html/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /var/www/html/glpi/files
GLPI_CACHE_DIR: /var/www/html/glpi/files/_cache
GLPI_CRON_DIR: /var/www/html/glpi/files/_cron
GLPI_DUMP_DIR: /var/www/html/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/www/html/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/www/html/glpi/files/_locales
GLPI_LOCK_DIR: /var/www/html/glpi/files/_lock
GLPI_LOG_DIR: /var/www/html/glpi/files/_log
GLPI_PICTURE_DIR: /var/www/html/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/www/html/glpi/files/_plugins
GLPI_RSS_DIR: /var/www/html/glpi/files/_rss
GLPI_SESSION_DIR: /var/www/html/glpi/files/_sessions
GLPI_TMP_DIR: /var/www/html/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/www/html/glpi/files/_uploads
GLPI_INVENTORY_DIR: /var/www/html/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/html/glpi/locales
GLPI_VERSION: 10.0.1
GLPI_SCHEMA_VERSION: 10.0.1@a130db99c7d9b131c2e2ea59fe0d6260fe93d831
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/var/www/html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.4.4 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 in (/var/www/html/glpi/vendor/symfony/polyfill-php81)
phpCas version 1.4.0 in (/usr/share/pear)
Notifications
 
Way of sending emails: SMTP ([email protected])
Plugins list
 
	addressing           Name: Adressage IP                   Version: 3.0.0      State: Enabled
	advancedplanning     Name: advancedplanning               Version: 1.1.0      State: Enabled
	glpiinventory        Name: GLPI Inventory                 Version: 1.0.1      State: Enabled

Anything else?

No response

Collect task and Computer information forms issues

When creating a collect information, I see 2 problems:

  1. In collect configuration, the type title is misplaced with the bookmark icon overriding it and it seems to lack a background color compared to
  2. I created the information to collect with the "registry" type, but if I change the type afterward to "wmi" as example, the title remains "Windows registry associated". But if you create another "collect information" directly with another type, the type title is always set to "Windows registry associated"

image

When clicking on the "All" selector to show everything, this looks better, but still with a wrong "type title".

GLPI: 10.0.0-beta
GLPI-Inventory plugin: 10.0.0-beta1

Error with latest pre-release installation (1.0.0-rc4)

Hi,

I want to give you a feedback with an issue I encounter while installing the latest version (1.0.0-rc4) of the GLPI Inventory Plugin.

In a test environment (clone of production VM), I updated from GLPI 9.5.4 to 10.0.0 successfully after cleaning OCS Inventory from my installation.

Then, I used to install the plugin from the marketplace, the download is OK, but I wasn't able to install it. Going to check the logs from ~/files/_log/php-errors.log

Here are the related logs

[2022-02-08 15:06:07] glpiphplog.CRITICAL:   *** Uncaught Exception Error: Undefined class constant 'HANDLE_NETDISCOVERY_TASK' in /var/www/glpi/marketplace/glpiinventory/setup.php at line 390
  Backtrace :
  src/Plugin.php:276                                 plugin_init_glpiinventory()
  src/Plugin.php:758                                 Plugin::load()
  :                                                  Plugin->install()
  src/Marketplace/Controller.php:481                 call_user_func()
  src/Marketplace/Controller.php:400                 Glpi\Marketplace\Controller->setPluginState()
  ajax/marketplace.php:80                            Glpi\Marketplace\Controller->installPlugin()

I tried to clean all traces about OCS, update PHP 7.4 to 8.1... Doesn't work.

Before trying to update, I did some tests with fresh install BEFORE the release of rc4, all worked fine.

I did a manual install of the previsou release (1.0.0-rc3) and all works fine actually.

So I did a last try on a clean install I used for testing and update the rc3 (installed with marketplace during my tests) to rc4, and it failed.

Looking at the logs, and I got the exact same message. Did I miss something ?

Import entities rules don't appear in the interface after migrate to GLPI 10

Hi,

After migrate to GLPI 10 with GLPIInventory plugin since 9.4.3 (FusionInventory v9.4+1.1)
The existing import entities rules don't showing up in administration interface.

The "sub_type" column remains under the name "PluginFusioninventoryInventoryRuleEntity" in glpi_rules table.
image

When modifying the sub_type column "PluginFusioninventoryInventoryRuleEntity" to "RuleImportEntity", this solves the problem.

UPDATE db_glpi_prod.glpi_rules SET sub_type = 'RuleImportEntity' WHERE (id = '88');

image

Richard

Informations sur le système, l'installation et la configuration
GLPI 10.0.0-rc3 ( => /var/www/html)
Installation mode: TARBALL
Current language:fr_FR
Server
 
Operating system: Linux DEV-LINUX 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
PHP 7.4.25 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,
	calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, intl, json, ldap,
	libxml, mbstring, memcached, msgpack, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets,
	sodium, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="320" memory_limit="256M" post_max_size="8M" safe_mode="" session.save_handler="files"
	upload_max_filesize="2M" 
Software: Apache/2.4.51 (Debian) (Apache/2.4.51 (Debian) Server at devlinux.dev.lan Port 80
)
	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Server Software: Debian 11
	Server Version: 10.5.12-MariaDB-0+deb11u1
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: glpi@localhost/db_glpi_prod
	Host info: Localhost via UNIX socket

PHP version (7.4.25) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.5.12) is supported.
The log file has been created successfully.
Write access to /var/www/html/files/_cache has been validated.
Write access to /var/www/html/config has been validated.
Write access to /var/www/html/files/_cron has been validated.
Write access to /var/www/html/files has been validated.
Write access to /var/www/html/files/_dumps has been validated.
Write access to /var/www/html/files/_graphs has been validated.
Write access to /var/www/html/files/_lock has been validated.
Write access to /var/www/html/files/_pictures has been validated.
Write access to /var/www/html/files/_plugins has been validated.
Write access to /var/www/html/files/_rss has been validated.
Write access to /var/www/html/files/_sessions has been validated.
Write access to /var/www/html/files/_tmp has been validated.
Write access to /var/www/html/files/_uploads has been validated.
Web access to the files directory should not be allowed but this cannot be checked automatically on this instance.
Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/html
GLPI_CONFIG_DIR: /var/www/html/config
GLPI_VAR_DIR: /var/www/html/files
GLPI_MARKETPLACE_DIR: /var/www/html/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /var/www/html/files
GLPI_CACHE_DIR: /var/www/html/files/_cache
GLPI_CRON_DIR: /var/www/html/files/_cron
GLPI_DUMP_DIR: /var/www/html/files/_dumps
GLPI_GRAPH_DIR: /var/www/html/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/www/html/files/_locales
GLPI_LOCK_DIR: /var/www/html/files/_lock
GLPI_LOG_DIR: /var/www/html/files/_log
GLPI_PICTURE_DIR: /var/www/html/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/www/html/files/_plugins
GLPI_RSS_DIR: /var/www/html/files/_rss
GLPI_SESSION_DIR: /var/www/html/files/_sessions
GLPI_TMP_DIR: /var/www/html/files/_tmp
GLPI_UPLOAD_DIR: /var/www/html/files/_uploads
GLPI_INVENTORY_DIR: /var/www/html/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/html/locales
GLPI_VERSION: 10.0.0-rc3
GLPI_SCHEMA_VERSION: 10.0.0-rc3@95da1cf53007a5c27622e99b82f61e98c6e97906
GLPI_MARKETPLACE_PRERELEASES: 1
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/var/www/html/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/html/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/vendor/simplepie/simplepie/library)
mpdf/mpdf in (/var/www/html/vendor/mpdf/mpdf/src)
michelf/php-markdown in (/var/www/html/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/vendor/psr/cache/src)
league/csv in (/var/www/html/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/vendor/symfony/cache)
html2text/html2text in (/var/www/html/vendor/html2text/html2text/src)
symfony/dom-crawler in (/var/www/html/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 in (/var/www/html/vendor/symfony/polyfill-php80)
phpCas version 1.3.8 in (/usr/share/php/CAS/source)
SQL replicas
 
Not active
Notifications
 
Way of sending emails: PHP
Plugins list
 
	glpiinventory        Name: GLPI Inventory                 Version: 1.0.0-rc7  State: Enabled

Installation Failed

Hello,
I try to install the plugins into my glpi and when the database migrate, i've this issue. (Sorry for my english i'm a french guy)

This is the log file

Migration Classname : Migration (0 seconde)
Update of plugin GLPI Inventory (0 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_agents (0 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_agentmodules (0 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_configs (0 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_configs (0 seconde)
Ajout des index d'unicité - glpi_plugin_glpiinventory_configs (0 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_entities (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_locks (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_locks (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_ignoredimportdevices (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_rulematchedlogs (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_unmanageds (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputercriterias (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputerblacklists (1 seconde)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputercomputers (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_computerlicenseinfos (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_computerremotemanagements (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblockinventorynames (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblockinventories (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblocksoftwares (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblocksoftwareversions (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobs (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_ipranges (2 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_ipranges_configsecurities (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_configlogfields (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkportconnectionlogs (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkporttypes (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkports (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkportlogs (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_printers (3 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_printerlogs (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_printercartridges (4 secondes)
Clean printers (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkequipments (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_configsecurities (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_statediscoveries (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deployfiles (4 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_entities (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_groups (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_profiles (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_users (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploymirrors (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups_staticdatas (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups_dynamicdatas (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_credentials (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_credentialips (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects (5 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_registries (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_registries_contents (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_wmis (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_wmis_contents (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_files (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_files_contents (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_tasks (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobs (6 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjoblogs (7 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobstates (7 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_timeslots (7 secondes)
Changement de la structure de la base de données - glpi_plugin_glpiinventory_timeslotentries (7 secondes)
Add Crontasks (7 secondes)
Traitement terminé. (7 secondes)
Migration Classname : Migration (0 seconde)
Use core capabilities (0 seconde)
Use core SNMP credentials (0 seconde)
Use core network ports (0 seconde)
Use core network equipments (0 seconde)
Use core printers (0 seconde)
Use core printer logs (0 seconde)
Use core networkports logs (0 seconde)
Use core network ports types (0 seconde)
Use core agent (0 seconde)

  • Erreur durant l'éxecution de la requête : UPDATE glpi_plugin_glpiinventory_printers SET plugin_glpiinventory_agents_id = '0' WHERE plugin_glpiinventory_agents_id = '1' - L'erreur est Table 'glpidb.glpi_plugin_glpiinventory_printers' doesn't exist

Thank's for your help

No need for a "Delete permanently" button when creating a task

When adding a task the "Delete permanently" button should not be displayed.
Also as it has a color against the "Add" which is white, we think first to click on it. Maybe a color is missing on the "Add" button so.
image

GLPI: 10.0.0-beta
GLPI-Inventory plugin: 10.0.0-beta1

OS Name & version don't update during inventory (Linux)

Hi,

I use GLPI Agent v1.2 on Ubuntu 21.10 virtual machine and I noticed that on first inventory, the data below is displayed (It's OK) :

  • Name of operating system : Ubuntu 21.10
  • Version : "Nothing"

When I modified manually the two fields with :

  • Name of operating system : Ubuntu
  • Version : 11.0

And I force inventory on the virtual machine (sudo glpi-agent), the OS Name and version don't update, the fields remains unchanged, why ? I don't understand.

On import history :

ID Date User Field Update
18376 2022-04-24 14:26 inventory Operating system Add a link with an item: Ubuntu 21.10 (3)
18374 2022-04-24 14:26 inventory Operating system Delete a link with an item: Ubuntu (2)
18372 2022-04-24 14:26 inventory Item operating systems Update a link with an item: 2 (11.0)
18370 2022-04-24 14:26 inventory Last inventory date Change 2022-04-24 13:40 to 2022-04-24 14:26

For test, I have upgrade OS Ubuntu 21.10 to 22.04 and launch inventory.

GLPI add "Ubuntu 22.04 LTS" on Operatings Systems list but don't update the field on computer page, same thing for version, why ? I'm obligated to delete computer and force inventory for update correctly this fields.

Note : Kernel field update correctly

image

image

Thanks you.
Richard

To reproduce

In bug description

Expected behavior

Correct update of the name and version of the operating system during an inventory

Operating system

Linux

GLPI Agent version

1.2

GLPI version

GLPI 10.0.0

GLPIInventory plugin or FusionInventory for GLPI plugin version

GLPIInventory plugin is installed (Version 1.0.0)

SNMP inventory issue

Bug reporting acknowledgment

Yes, I read it

Professional support

I still have but want a public following to keep the community aware

Describe the bug

During an SNMP inventory on an IP range which is executed by the FusionInventory agent installed on my workstation, the inventory is executed but when the agent arrives on a switch, it is fixed on the switch. So the inventory stops.

I am therefore obliged to carry out an inventory from my workstation so that GLPI knows that the agent is installed on my workstation and not on the switch.

State of my PC before inventory:
2022-02-10 16_29_34-Ordinateur - CTR100 - GLPI – Brave

Running the current task:
image

State of my PC during the inventory (when the execution of the tasks turns white like the photo above):
image

We can therefore see on the last photo that the agent is no longer considered to be installed on the post.

Here is where the agent is currently:
image
We can see that according to GLPI, the agent is installed on a printer (PRN181)

To reproduce

During an SNMP inventory on an IP range which is executed by the FusionInventory agent installed on my workstation, the inventory is executed but when the agent arrives on a switch, it is fixed on the switch. So the inventory stops.

I am therefore obliged to carry out an inventory from my workstation so that GLPI knows that the agent is installed on my workstation and not on the switch.

State of my PC before inventory:
2022-02-10 16_29_34-Ordinateur - CTR100 - GLPI – Brave

Running the current task:
image

State of my PC during the inventory (when the execution of the tasks turns white like the photo above):
image

We can therefore see on the last photo that the agent is no longer considered to be installed on the post.

Here is where the agent is currently:
image
We can see that according to GLPI, the agent is installed on a printer (PRN181)

Expected behavior

When I was on GLPI 9.5.6, my inventory worked perfectly... there was no such bug...

Operating system

Windows

GLPI Agent version

1.1

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

9.5+3.0

Additional context

No response

Logs:

log:
Nothing in the agent's .log file indicates where the error may have come from.

Installing Plugin produces an error

There seems to be an issue with the plugin, we updated from the latest V9 version to V10 we had fusion inventory plugin but opted for the new GLPI Inventory Plugin however when trying to install the plugin we get the following error:

UPDATE glpi_plugin_glpiinventory_printers SET plugin_glpiinventory_agents_id = '0' WHERE plugin_glpiinventory_agents_id = '1' - Error is Table 'glpi.glpi_plugin_glpiinventory_printers' doesn't exist

Can you check the install as there may be a few of these tables that need creating/populating.

Unexpected empty server response with activated glpi-inventory-plugin

Systeminfo:

  • Docker Container with glpi_V10rc2
  • glpi_agent nightly: GLPI-Agent-1.2-gitd47f6c1d-x64
  • /inventory_format/lib/php/Converter.php and inventory_format/inventory.schema.json updated to latest version (10.03.2022 08:00GMT)
  • glpi inventory plugin: 1.0.0-rc5
  • XML file is a netinventory file of an Mikrotik Switch (others, but not all fail too)

Problem:
Some Netinventory XML-files "fail" with ERROR: Unexpected empty server response when using glpi-injector.bat.
when i deactivate the glpi-inventory-plugin the import runs with some php-errors.

Maybe the netinventory just "covers" the underlying schema problems?

Explanation:
console-log with plugin:

 .\glpi-injector.bat -v --file C:\Temp\glpi-agent\netinventory\192.168.201.3.xml --url https://************************/front/inventory.php --debug --debug
Loading C:\Temp\glpi-agent\netinventory\192.168.201.3.xml...[CB99F7DF] ERROR: Unexpected empty server response
DEBUG:
These elements were not sent:
C:\Temp\glpi-agent\netinventory\192.168.201.3.xml

console-log with deactivated plugin:

.\glpi-injector.bat -v --file C:\Temp\glpi-agent\netinventory\192.168.201.3.xml --url https://*********************/front/inventory.php --debug --debug
Loading C:\Temp\glpi-agent\netinventory\192.168.201.3.xml...[DA7D1654] OK
DEBUG: <?xml version="1.0"?>
<REPLY><RESPONSE>SEND</RESPONSE></REPLY>

php-errors with glpi-inventory:

[2022-03-10 09:46:38] glpiphplog.CRITICAL:   *** Uncaught Exception Error: Call to undefined method Unmanaged::disconnectFrom() in /var/www/html/glpi/marketplace/glpiinventory/hook.php at line 874
  Backtrace :
  src/Plugin.php:1437                                plugin_item_purge_glpiinventory()
  src/CommonDBTM.php:1931                            Plugin::doHook()
  src/NetworkPort_NetworkPort.php:185                CommonDBTM->delete()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

php-errors .php with deactivated glpi-inventory-plugin

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '36' OR `glpi_networkports_networkports`.`networkports_id_2` = '36')". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:78                 NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/NetworkPort_NetworkPort.php:183                NetworkPort_NetworkPort->getOppositeContact()
  src/NetworkPort_NetworkPort.php:252                NetworkPort_NetworkPort->disconnectFrom()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '36' OR `glpi_networkports_networkports`.`networkports_id_2` = '36')". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:184                NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/NetworkPort_NetworkPort.php:252                NetworkPort_NetworkPort->disconnectFrom()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '295' OR `glpi_networkports_networkports`.`networkports_id_2` = '295')". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:78                 NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/NetworkPort_NetworkPort.php:183                NetworkPort_NetworkPort->getOppositeContact()
  src/NetworkPort_NetworkPort.php:253                NetworkPort_NetworkPort->disconnectFrom()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 2 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '295' OR `glpi_networkports_networkports`.`networkports_id_2` = '295')". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:184                NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/NetworkPort_NetworkPort.php:253                NetworkPort_NetworkPort->disconnectFrom()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 4 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` IN ('36', '295') OR `glpi_networkports_networkports`.`networkports_id_2` IN ('36', '295'))". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:266                NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/CommonDBTM.php:1207                            NetworkPort_NetworkPort->prepareInputForAdd()
  src/NetworkPort_NetworkPort.php:257                CommonDBTM->add()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): getFromDBByCrit expects to get one result, 3 found in query "SELECT `id` FROM `glpi_networkports_networkports` WHERE (`glpi_networkports_networkports`.`networkports_id_1` = '295' OR `glpi_networkports_networkports`.`networkports_id_2` = '295')". in /var/www/html/glpi/src/CommonDBTM.php at line 369
  Backtrace :
  src/CommonDBTM.php:369                             trigger_error()
  src/NetworkPort_NetworkPort.php:63                 CommonDBTM->getFromDBByCrit()
  src/NetworkPort_NetworkPort.php:78                 NetworkPort_NetworkPort->getFromDBForNetworkPort()
  src/NetworkPort_NetworkPort.php:314                NetworkPort_NetworkPort->getOppositeContact()
  src/NetworkPort_NetworkPort.php:276                NetworkPort_NetworkPort->storeConnectionLog()
  src/CommonDBTM.php:1250                            NetworkPort_NetworkPort->post_addItem()
  src/NetworkPort_NetworkPort.php:257                CommonDBTM->add()
  src/NetworkPort_NetworkPort.php:186                NetworkPort_NetworkPort->cleanHubPorts()
  src/NetworkPort_NetworkPort.php:136                NetworkPort_NetworkPort->disconnectFrom()
  src/Inventory/Asset/NetworkPort.php:758            NetworkPort_NetworkPort->connectToHub()
  src/Inventory/Asset/NetworkPort.php:316            Glpi\Inventory\Asset\NetworkPort->handleHub()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:54] glpiphplog.WARNING:   *** PHP User Warning (512): Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php at line 267
  Backtrace :
  src/NetworkPort_NetworkPort.php:267                trigger_error()
  src/CommonDBTM.php:1207                            NetworkPort_NetworkPort->prepareInputForAdd()
  src/Inventory/Asset/NetworkPort.php:332            CommonDBTM->add()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:55] glpiphplog.WARNING:   *** PHP User Warning (512): Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php at line 267
  Backtrace :
  src/NetworkPort_NetworkPort.php:267                trigger_error()
  src/CommonDBTM.php:1207                            NetworkPort_NetworkPort->prepareInputForAdd()
  src/Inventory/Asset/NetworkPort.php:332            CommonDBTM->add()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[2022-03-10 10:00:55] glpiphplog.WARNING:   *** PHP User Warning (512): Wired non unique! in /var/www/html/glpi/src/NetworkPort_NetworkPort.php at line 267
  Backtrace :
  src/NetworkPort_NetworkPort.php:267                trigger_error()
  src/CommonDBTM.php:1207                            NetworkPort_NetworkPort->prepareInputForAdd()
  src/Inventory/Asset/NetworkPort.php:332            CommonDBTM->add()
  src/Inventory/Asset/NetworkPort.php:528            Glpi\Inventory\Asset\NetworkPort->handleMacConnection()
  src/Inventory/Asset/NetworkPort.php:550            Glpi\Inventory\Asset\NetworkPort->handleConnections()
  src/Inventory/Asset/NetworkPort.php:540            Glpi\Inventory\Asset\NetworkPort->portChanged()
  src/Inventory/Asset/InventoryNetworkPort.php:487   Glpi\Inventory\Asset\NetworkPort->portUpdated()
  src/Inventory/Asset/InventoryNetworkPort.php:115   Glpi\Inventory\Asset\NetworkPort->handleUpdates()
  src/Inventory/Asset/NetworkPort.php:701            Glpi\Inventory\Asset\NetworkPort->handlePortsTrait()
  src/Inventory/Asset/NetworkPort.php:535            Glpi\Inventory\Asset\NetworkPort->handlePorts()
  src/Inventory/Asset/MainAsset.php:760              Glpi\Inventory\Asset\NetworkPort->handle()
  src/Inventory/Asset/MainAsset.php:681              Glpi\Inventory\Asset\MainAsset->handleAssets()
  src/Inventory/Asset/NetworkEquipment.php:217       Glpi\Inventory\Asset\MainAsset->rulepassed()
  src/RuleImportAsset.php:942                        Glpi\Inventory\Asset\NetworkEquipment->rulepassed()
  src/Rule.php:1503                                  RuleImportAsset->executeActions()
  src/RuleCollection.php:1588                        Rule->process()
  src/Inventory/Asset/MainAsset.php:515              RuleCollection->processAllRules()
  src/Inventory/Inventory.php:665                    Glpi\Inventory\Asset\MainAsset->handle()
  src/Inventory/Inventory.php:312                    Glpi\Inventory\Inventory->handleItem()
  src/Inventory/Request.php:360                      Glpi\Inventory\Inventory->doInventory()
  src/Inventory/Request.php:294                      Glpi\Inventory\Request->inventory()
  src/Inventory/Request.php:91                       Glpi\Inventory\Request->networkInventory()
  src/Agent/Communication/AbstractRequest.php:278    Glpi\Inventory\Request->handleAction()
  src/Agent/Communication/AbstractRequest.php:217    Glpi\Agent\Communication\AbstractRequest->handleXMLRequest()
  front/inventory.php:67                             Glpi\Agent\Communication\AbstractRequest->handleRequest()

[GLPI 10] Nothing seem be supported

Hi everyone,

i would try to test the new GLPI-Agent with GLPI-Inventory. I configure the GLPI-Inventory with my task (Vmware for example), the task seems to be ready on server side but when i launch glpi-agent command in debug mode i have :

[debug] ESX task not supported by GLPI server
[debug] NetInventory task not supported by GLPI server
[debug] NetDiscovery task not supported by GLPI server

And nothing be inventoried. My glpi-agent and my GLPI server is on the same server. which link inform in agent.cfg ?

  • http://GLPISRV/GLPI/front/inventory.php
  • http://GLPISRV/GLPI/plugins/glpiinventory

i don't find a documentation about that.

Thank in advance

SNMP Credentials Issue

After upgrade GLPI 9.5 to GLPI 10.
Unable to normally assosiate snmp credential with ip range.

After click assosiate button empty record appeared and Error in _log/php-errors.log

`[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpcredentials_id" in /var/www/glpi/marketplace/glpiinventory/inc/iprange_snmpcredential.class.php at line 164
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()

[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpcredentials_id" in /var/www/glpi/marketplace/glpiinventory/inc/iprange_snmpcredential.class.php at line 164
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()

[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpcredentials_id" in /var/www/glpi/marketplace/glpiinventory/inc/iprange_snmpcredential.class.php at line 221
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()

[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpversion" in /var/www/glpi/src/SNMPCredential.php at line 100
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:225 SNMPCredential->getRealVersion()
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()

[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpcredentials_id" in /var/www/glpi/marketplace/glpiinventory/inc/iprange_snmpcredential.class.php at line 221
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()

[2022-05-11 19:14:04] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "snmpversion" in /var/www/glpi/src/SNMPCredential.php at line 100
  Backtrace :
  ...entory/inc/iprange_snmpcredential.class.php:225 SNMPCredential->getRealVersion()
  ...entory/inc/iprange_snmpcredential.class.php:114 PluginGlpiinventoryIPRange_SNMPCredential->showItemForm()
  src/CommonGLPI.php:687                             PluginGlpiinventoryIPRange_SNMPCredential::displayTabContentForItem()
  ajax/common.tabs.php:107                           CommonGLPI::displayStandardTab()`

Capture1
Capture2

Erroneous uninstallation by Software agent

There was a problem, today I updated to the latest versions of the agent, plugin and the GLPI backend.
And a problem was discovered, for a reason not clear to me, an uninstallation was performed from Software WinSCP and Express. Pay attention to the screenshot, you can see that the information has been updated in the history and it is stated that this program has been removed, or it can be assumed, for example, as a version update. But when viewed in the control panel “Programs and Features”, I saw that there were no changes in the software. I ran the programs themselves, but there were no version changes either, and the GPO cannot be the cause because this computer has been working for a week without a break.

Version GLPI night bild master.83848a8.tar 03/29/22
Agent version GLPI-Agent-1.2-git9418c6ef-x64 03/29/22
Plugin version glpi-glpiinventory-1.0.0-rc7
8

Network scan threads default values should be "General setup"

After first import, a agent should show it uses "General setup" related value" for "Network discovery threads" and "Network inventory threads".
image

GLPI: 10.0.0-beta
GLPI-Inventory plugin: 10.0.0-beta1
GLPI-Agent: 1.0, asset imported via native inventory

Incorrect string value

Bonjour

[2022-03-31 16:25:29] glpiphplog.ERROR: *** PHP User Error (256): Incorrect string value: '\xC2 Mana...' for column 'name' at row 1 in C:\wamp64\www\glpi\src\DBmysql.php at line 1936
Backtrace :
src\DBmysql.php:1936 trigger_error()
src\Inventory\Asset\Software.php:631 DBmysql->executeStatement()
src\Inventory\Asset\Software.php:371 Glpi\Inventory\Asset\Software->storeSoftware()
src\Inventory\Asset\MainAsset.php:765 Glpi\Inventory\Asset\Software->handle()
src\Inventory\Asset\MainAsset.php:686 Glpi\Inventory\Asset\MainAsset->handleAssets()
src\RuleImportAsset.php:951 Glpi\Inventory\Asset\MainAsset->rulepassed()
src\Rule.php:1505 RuleImportAsset->executeActions()

Le probleme vient du nom du logiciel
00560Administration de Windows Azure AD Rights Management : entre Rights et management, présence dun caractere xc2 (echappement, retour à la ligne ?)

du coup cela genere une erreur dans la log agent
image

pour information :
le traitement du meme agent vers GLPI et plugin FusionInventory passe : donc traitement spécifique à apporter dans la gestion software.php

Docking not shown

Hi.

I'm not sure if it is an issue, but we are not able to have listed all the docking stations than we have.

Is it normal?

Uncaught exception on netinventory error XML

I applied patch and it works now for online printers, but offline printers still gives error 500. By using previous method and importing XML from debug2 manually error is
attels
Used XML

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <ERROR>
        <ID>2</ID>
        <MESSAGE>SNMP communication error: no response from host 1.1.1.1</MESSAGE>
        <TYPE>PRINTER</TYPE>
      </ERROR>
    </DEVICE>
    <MODULEVERSION>5.0</MODULEVERSION>
    <PROCESSNUMBER>46</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>glpi-2022-02-07-10-32-15</DEVICEID>
  <QUERY>SNMPQUERY</QUERY>
</REQUEST>

Originally posted by @girtsudrass in glpi-project/glpi-agent#64 (comment)

Agent is not being woken up by automatic action

I've been trying to test the new GLPI Agent in managed mode, but the agent never gets "awakened" by the automatic action in the server.

Here is the request the agent receives:
image
127.17.0.17 is the server IP.

And here is the result back at the automatic action:
image

The request is being made to /. However, from what I could find, it should be made to /now in order to provide the expected effect.
Is that correct?

Dynamic Group not available and deploy on demand menu redirect on computer search

Hello, this is my first thread on GitHub, I'm a developper and since upgrade of GLPI from 9.5.6 to 10.0 ( thank for the great work in first time ! ) I've a persistant issue.

With an Active Directory account with default "Super-Admin" profiles ( everything checked in entitites Rights) when I'm on a computer's detail if I click on "Package deployment" I'm redirected to default computer search instead the list of availables task to deploy :
image

HOWEVER, the same process done with the default glpi account work insanely !

Same problem with GLPI Inventory "dynamic" group, no way to edit or see criterial .. redirected on main computer search.. This work with static group.. Tested with others AD account, same issue, and with Internal account there isn't any issue..

Informations sur le système, l'installation et la configuration
GLPI 10.0.0 ( => /var/www/glpi)
Installation mode: TARBALL
Current language:fr_FR
Server
 
Operating system: Linux svglpi631 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64
PHP 7.4.29 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bcmath,
	bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap,
	libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets, sodium, standard,
	sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="512M" post_max_size="512M" safe_mode="" session.save_handler="files"
	upload_max_filesize="512M" 
Software: Apache/2.4.25 (Debian) (Apache/2.4.25 (Debian) Server at support.sdis63.fr Port 443
)
	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Server Software: mariadb.org binary distribution
	Server Version: 10.6.7-MariaDB-1:10.6.7+maria~stretch
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: glpi@localhost/glpi_sdis63
	Host info: Localhost via UNIX socket

PHP version (7.4.29) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.6.7) is supported.
The log file has been created successfully.
Write access to /var/www/glpi/files/_cache has been validated.
Write access to /var/www/glpi/config has been validated.
Write access to /var/www/glpi/files/_cron has been validated.
Write access to /var/www/glpi/files has been validated.
Write access to /var/www/glpi/files/_dumps has been validated.
Write access to /var/www/glpi/files/_graphs has been validated.
Write access to /var/www/glpi/files/_lock has been validated.
Write access to /var/www/glpi/files/_pictures has been validated.
Write access to /var/www/glpi/files/_plugins has been validated.
Write access to /var/www/glpi/files/_rss has been validated.
Write access to /var/www/glpi/files/_sessions has been validated.
Write access to /var/www/glpi/files/_tmp has been validated.
Write access to /var/www/glpi/files/_uploads has been validated.
Web access to the files directory should not be allowed but this cannot be checked automatically on this instance.
Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/glpi
GLPI_CONFIG_DIR: /var/www/glpi/config
GLPI_VAR_DIR: /var/www/glpi/files
GLPI_MARKETPLACE_DIR: /var/www/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /var/www/glpi/files
GLPI_CACHE_DIR: /var/www/glpi/files/_cache
GLPI_CRON_DIR: /var/www/glpi/files/_cron
GLPI_DUMP_DIR: /var/www/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/www/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/www/glpi/files/_locales
GLPI_LOCK_DIR: /var/www/glpi/files/_lock
GLPI_LOG_DIR: /var/www/glpi/files/_log
GLPI_PICTURE_DIR: /var/www/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/www/glpi/files/_plugins
GLPI_RSS_DIR: /var/www/glpi/files/_rss
GLPI_SESSION_DIR: /var/www/glpi/files/_sessions
GLPI_TMP_DIR: /var/www/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/www/glpi/files/_uploads
GLPI_INVENTORY_DIR: /var/www/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/glpi/locales
GLPI_VERSION: 10.0.0
GLPI_SCHEMA_VERSION: 10.0.0@9eb698d8fd49f9256d7bd63a6d747587e0effaff
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/var/www/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/glpi/vendor/simplepie/simplepie/library)
mpdf/mpdf in (/var/www/glpi/vendor/mpdf/mpdf/src)
michelf/php-markdown in (/var/www/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/glpi/vendor/psr/cache/src)
league/csv in (/var/www/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/glpi/vendor/html2text/html2text/src)
symfony/dom-crawler in (/var/www/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 in (/var/www/glpi/vendor/symfony/polyfill-php80)
symfony/polyfill-php81 in (/var/www/glpi/vendor/symfony/polyfill-php81)
LDAP directories
 
Server: 'AD631.FEUX63.fr', Port: '389', BaseDN: 'OU=SDIS,DC=FEUX63, DC=FR', Connection filter:
		'(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN: 'adm_glpi@feux63', Use
		TLS: none
Server: 'AD632.FEUX63.fr', Port: '389', BaseDN: 'OU=SDIS,DC=FEUX63, DC=FR', Connection filter:
		'(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN: 'adm_glpi@feux63', Use
		TLS: none
SQL replicas
 
Not active
Notifications
 
Way of sending emails: PHP
Plugins list
 
	news                 Name: Alertes                        Version: 1.10.2     State: Not installed
	camerainput          Name: Camera Input                   Version: 2.0.0      State: Enabled
	datainjection        Name: Data Injection                 Version: 2.11.1     State: Installed / not activated
	purchaserequest      Name: Demande d'achat                Version: 3.0.0      State: Enabled
	consumables          Name: Demande de consommables        Version: 2.0.0      State: Enabled
	escalade             Name: Escalades                      Version: 2.8.0      State: Installed / not activated
	formcreator          Name: Form Creator                   Version: 2.13.0-beta.1 State: Installed / not activated
	glpiinventory        Name: GLPI Inventory                 Version: 1.0.0      State: Enabled
	manufacturersimports Name: Imports fabricants             Version: 3.0.0      State: Enabled
	reservation          Name: Reservation                    Version: 2.3.8      State: Enabled
	roundrobin           Name: Round Robin                    Version: 1.0.0      State: Installed / not activated
	dashboard            Name: Tableau de bord                Version: 1.0.2      State: Installed / not activated
	vizir                Name: Vizir                          Version: 1.1.1      State: Installed / not activated

Add Search option

Hello,

I migrate from FusionInventory plugins to glpi-inventory.
I see that many search options were removed.

I tried to put it back in hook.php file, inspired from fusion plugins.

function plugin_glpiinventory_getAddSearchOptions($itemtype)
{

$sopt[5160] = [
            'table'         => 'glpi_agents',
            'field'         => 'useragent',
            'name'          => __('Useragent', 'glpiinventory'),
            'massiveaction' => false,
            'joinparams'    => [
                'jointype' => 'child'
            ]
        ]; 

}

However, on the page Computers, I get this message :

Unknown column 'glpi_agents.computers_id' in 'on clause'

Could help me please ?

[GLPI 10] Network Discovery not importing nor rejecting devices

GLPI Version

10.0-3de7b01 (Nightly build, but tests were made on release 10.0.0 beforehand)

GLPI Agent version

1.3-git2a4bc72e (Nightly build, but tests were made on release 1.2 beforehand) with an "all" install (network discovery and inventory included)

GLPI inventory version

1.0.1

Bug description

When trying to do network discovery from the glpi interface, the devices are detected, but are neither rejected yet not imported. The agent responds correctly, and the normal "inventory" task runs as intended as wel.
image

I'm also a bit concerned by this line found in the logs [Wed Jun 1 15:20:31 2022][debug] server message: remoteinventory task not supported
because snmp remote inventory also does not work: Forcing the job will do nothing, not a single job execution will be created.
image

Releavant log output

"Succsessful" network discovery job done
 
xxxxxx
2022-06-01 15:20:40
Processed: 0 Created: 0 Updated: 0
6297679e1c980
2022-06-01 15:20:40	Ok	Processed: 0 Created: 0 Updated: 0
2022-06-01 15:20:38	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:39	Ok	Processed: 0 Created: 0 Updated: 0
2022-06-01 15:20:39	Running	1 devices found
2022-06-01 15:20:38	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:38	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:38	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:37	Running	1 devices found
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:33	Running	1 devices found
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:31	Started	0 threads 0 timeout
2022-06-01 15:20:23	Prepared	
6297679e1c980
2022-06-01 15:20:30	Prepared	
62976797dac8d
2022-06-01 15:20:23	Prepared	
Glpi Agent
 
(Maximum body reached, content will be in reply)

Steps to reproduce

  1. Create a new task with network discovery job (Don't forget to add releavant angents and IP ranges with SNMP credentials)
  2. Activate the task and force start
  3. Wait until job completion
  4. Check discovery status. You should have no imported nor rejected devices

Your GLPI setup information

Information about system installation and configuration
GLPI 10.0.1 ( => /var/www/html/glpi)
Installation mode: TARBALL
Current language:en_GB
Server
 
Operating system: Linux SRV1HLD21 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64
PHP 7.4.28 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,
	calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring,
	mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem,
	sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
	upload_max_filesize="2M" 
Software: Apache/2.4.53 (Debian) (Apache/2.4.53 (Debian) Server at helpdesk-recette.groupe-glenat.com Port 443
)
	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53
Server Software: Debian 11
	Server Version: 10.5.15-MariaDB-0+deb11u1
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: glpi@localhost/glpi
	Host info: Localhost via UNIX socket

PHP version (7.4.28) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.5.15) is supported.
The log file has been created successfully.
Write access to /var/www/html/glpi/files/_cache has been validated.
Write access to /var/www/html/glpi/config has been validated.
Write access to /var/www/html/glpi/files/_cron has been validated.
Write access to /var/www/html/glpi/files has been validated.
Write access to /var/www/html/glpi/files/_dumps has been validated.
Write access to /var/www/html/glpi/files/_graphs has been validated.
Write access to /var/www/html/glpi/files/_lock has been validated.
Write access to /var/www/html/glpi/files/_pictures has been validated.
Write access to /var/www/html/glpi/files/_plugins has been validated.
Write access to /var/www/html/glpi/files/_rss has been validated.
Write access to /var/www/html/glpi/files/_sessions has been validated.
Write access to /var/www/html/glpi/files/_tmp has been validated.
Write access to /var/www/html/glpi/files/_uploads has been validated.
Web access to the files directory should not be allowed but this cannot be checked automatically on this instance.
Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/html/glpi
GLPI_CONFIG_DIR: /var/www/html/glpi/config
GLPI_VAR_DIR: /var/www/html/glpi/files
GLPI_MARKETPLACE_DIR: /var/www/html/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /var/www/html/glpi/files
GLPI_CACHE_DIR: /var/www/html/glpi/files/_cache
GLPI_CRON_DIR: /var/www/html/glpi/files/_cron
GLPI_DUMP_DIR: /var/www/html/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/www/html/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/www/html/glpi/files/_locales
GLPI_LOCK_DIR: /var/www/html/glpi/files/_lock
GLPI_LOG_DIR: /var/www/html/glpi/files/_log
GLPI_PICTURE_DIR: /var/www/html/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/www/html/glpi/files/_plugins
GLPI_RSS_DIR: /var/www/html/glpi/files/_rss
GLPI_SESSION_DIR: /var/www/html/glpi/files/_sessions
GLPI_TMP_DIR: /var/www/html/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/www/html/glpi/files/_uploads
GLPI_INVENTORY_DIR: /var/www/html/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/html/glpi/locales
GLPI_VERSION: 10.0.1
GLPI_SCHEMA_VERSION: 10.0.1
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/var/www/html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.4.4 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 in (/var/www/html/glpi/vendor/symfony/polyfill-php80)
symfony/polyfill-php81 in (/var/www/html/glpi/vendor/symfony/polyfill-php81)
SQL replicas
 
Not active
Notifications
 
Way of sending emails: PHP
Plugins list
 
	fields               Name: Champs supplémentaires         Version: 1.15.1     State: Enabled
	datainjection        Name: Data Injection                 Version: 2.11.1     State: Enabled
	glpiinventory        Name: GLPI Inventory                 Version: 1.0.1      State: Enabled
	manageentities       Name: Portail Clients                Version: 4.0.0      State: Enabled

SNMP community not display

The SNMP community name is not display in "Ip Range" associed snmp identifier

image

GLPI BETA 10 upgrade from 9.5
GLPI Inventory RC3

GLPI agent interval does not follow the interval configured in GLPI Inventory Plugin

Documentation

Yes, I read it

Solution search

Yes, I read it

Professional support

No response

Is your help request related to a problem?

We configured GLPI Inventory with an inventory interval of 1 hour :

image

But our agent keep scheduling an inventory once a day

There is a log of glpi-agent :

target server0: server https://[REDACTED]/plugins/glpiinventory/index.php
[Wed Feb  9 07:41:01 2022][info] sending contact request to server0
[Wed Feb  9 07:41:01 2022][info] sending prolog request to server0
[Wed Feb  9 07:41:02 2022][info] running task Deploy
[Wed Feb  9 07:41:02 2022][info] No Deploy job enabled or Deploy support disabled server side.
[Wed Feb  9 07:41:02 2022][info] running task Inventory
[Wed Feb  9 07:41:02 2022][info] New inventory from X360G8-IT-01.[REDACTED].local-2022-02-08-14-33-45 for server0
[Wed Feb  9 07:41:35 2022][info] target server0: next run: Thu Feb 10 07:34:17 2022 - https://[REDACTED]/plugins/glpiinventory/index.php
[Wed Feb  9 07:41:35 2022][info] GLPI Agent memory usage: WSS=3350528 PFU=143409152

Delaytime is set to 3600 in the registry too (Anyway, it is used only before the first contact according to the doc)

Expected behavior

I expect the agent to contact the server between 90%-100% of the scheduled time.

Actions you've considered

I tried on two computer, I also tried to reinstall agent on both, without success.

Additional context

I am using GLPI Inventory 10.0.0-rc4 on GLPI 10.0.0-rc1 with GLPI Agent 1.1

SNMP Discovery / Agent configuration

It´s not possible to configure any agent within the GLPI Inventory plugin to get SNMP discovery running.
The "Agent Discovery" is shown as read only, so there is no way to configure a new agent. Please provide any documentation how to configure the "GLPI Inventory" plugin to be working.
Thanks a lot for providing this plugin

I can't install glpi plugin

When I try to install glpi inventory with marketplace, I have a display bug and he it does not install.
If I try to install in command line, the web page of plugins it's doesn't works.

Before :
image
After when I click on "+" :
image

GLPi 10.0.1 : PHP User Warning (512): findVirtualMachine expects to get one result( php error log)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

GLPi 10.0.1 fix 20220704

Bug description

I select my ESXI ( 6 VM for example in this ESX ) but when I click on virtualization, there is a Php error message
image

Relevant log output

[2022-06-01 11:32:26] glpiphplog.WARNING:   *** PHP User Warning (512): findVirtualMachine expects to get one result, 2 found in query "SELECT `id` FROM `glpi_computers` WHERE ((LOWER(uuid)) IN ('564db572-bca2-de5b-e831-0a0230d60765', '72b54d56-bca2-de5b-e831-0a0230d60765', '72b54d56-a2bc-5bde-e831-0a0230d60765'))". in /var/www/html/glpi/src/ComputerVirtualMachine.php at line 502
  Backtrace :
  src/ComputerVirtualMachine.php:502                 trigger_error()
  src/ComputerVirtualMachine.php:390                 ComputerVirtualMachine::findVirtualMachine()
  src/ComputerVirtualMachine.php:95                  ComputerVirtualMachine::showForComputer()
  src/CommonGLPI.php:670                             ComputerVirtualMachine::displayTabContentForItem()
  ajax/common.tabs.php:111                           CommonGLPI::displayStandardTab()
  
[2022-06-01 11:32:36] glpiphplog.WARNING:   *** PHP User Warning (512): findVirtualMachine expects to get one result, 2 found in query "SELECT `id` FROM `glpi_computers` WHERE ((LOWER(uuid)) IN ('564d7e6a-d278-eb0e-3ae0-90bc8b0f0e21', '6a7e4d56-d278-eb0e-3ae0-90bc8b0f0e21', '6a7e4d56-78d2-0eeb-3ae0-90bc8b0f0e21'))". in /var/www/html/glpi/src/ComputerVirtualMachine.php at line 502
  Backtrace :
  src/ComputerVirtualMachine.php:502                 trigger_error()
  src/ComputerVirtualMachine.php:390                 ComputerVirtualMachine::findVirtualMachine()
  src/ComputerVirtualMachine.php:95                  ComputerVirtualMachine::showForComputer()
  src/CommonGLPI.php:670                             ComputerVirtualMachine::displayTabContentForItem()
  ajax/common.tabs.php:111                           CommonGLPI::displayStandardTab()
  
[2022-06-01 11:32:36] glpiphplog.WARNING:   *** PHP User Warning (512): findVirtualMachine expects to get one result, 2 found in query "SELECT `id` FROM `glpi_computers` WHERE ((LOWER(uuid)) IN ('564d2486-0017-e247-62df-f26c6c7d1e95', '86244d56-0017-e247-62df-f26c6c7d1e95', '86244d56-1700-47e2-62df-f26c6c7d1e95'))". in /var/www/html/glpi/src/ComputerVirtualMachine.php at line 502
  Backtrace :
  src/ComputerVirtualMachine.php:502                 trigger_error()
  src/ComputerVirtualMachine.php:390                 ComputerVirtualMachine::findVirtualMachine()
  src/ComputerVirtualMachine.php:95                  ComputerVirtualMachine::showForComputer()
  src/CommonGLPI.php:670                             ComputerVirtualMachine::displayTabContentForItem()
  ajax/common.tabs.php:111                           CommonGLPI::displayStandardTab()
  
[2022-06-01 11:32:36] glpiphplog.WARNING:   *** PHP User Warning (512): findVirtualMachine expects to get one result, 7 found in query "SELECT `id` FROM `glpi_computers` WHERE ((LOWER(uuid)) IN ('564d7b42-5757-a36c-103b-ee14a566508a', '427b4d56-5757-a36c-103b-ee14a566508a', '427b4d56-5757-6ca3-103b-ee14a566508a'))". in /var/www/html/glpi/src/ComputerVirtualMachine.php at line 502
  Backtrace :
  src/ComputerVirtualMachine.php:502                 trigger_error()
  src/ComputerVirtualMachine.php:390                 ComputerVirtualMachine::findVirtualMachine()
  src/ComputerVirtualMachine.php:95                  ComputerVirtualMachine::showForComputer()
  src/CommonGLPI.php:670                             ComputerVirtualMachine::displayTabContentForItem()
  ajax/common.tabs.php:111                           CommonGLPI::displayStandardTab()
  
[2022-06-01 11:32:36] glpiphplog.WARNING:   *** PHP User Warning (512): findVirtualMachine expects to get one result, 2 found in query "SELECT `id` FROM `glpi_computers` WHERE ((LOWER(uuid)) IN ('564d4ef1-8bd2-3c34-e649-00497a6a52f8', 'f14e4d56-8bd2-3c34-e649-00497a6a52f8', 'f14e4d56-d28b-343c-e649-00497a6a52f8'))". in /var/www/html/glpi/src/ComputerVirtualMachine.php at line 502
  Backtrace :
  src/ComputerVirtualMachine.php:502                 trigger_error()
  src/ComputerVirtualMachine.php:390                 ComputerVirtualMachine::findVirtualMachine()
  src/ComputerVirtualMachine.php:95                  ComputerVirtualMachine::showForComputer()
  src/CommonGLPI.php:670                             ComputerVirtualMachine::displayTabContentForItem()
  ajax/common.tabs.php:111                           CommonGLPI::displayStandardTab()

Page URL

/glpi/front/computer.form.php

Steps To reproduce

  1. Select my ESXI VM
  2. Select virtualization of this ESX VM

Your GLPI setup information

Informations sur le système, l'installation et la configuration
GLPI 10.0.1 (/glpi => /var/www/html/glpi)
Installation mode: TARBALL
Current language:fr_FR
Server
 
Operating system: Linux srv-glpi 3.10.0-1160.62.1.el7.x86_64 glpi-project/glpi#1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
PHP 8.0.19 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
	calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml,
	mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, sockets, sodium, sqlite3,
	standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="5M" safe_mode="" session.save_handler="files"
	upload_max_filesize="10M" 
Software: Apache/2.4.6 (CentOS) PHP/8.0.19 ()
	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36
Server Software: MariaDB Server
	Server Version: 10.4.24-MariaDB
	Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
	Parameters: root@localhost/glpi
	Host info: Localhost via UNIX socket

PHP version (8.0.19) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (10.4.24) is supported.
The log file has been created successfully.
Write access to /var/www/html/glpi/files/_cache has been validated.
Write access to /var/www/html/glpi/config has been validated.
Write access to /var/www/html/glpi/files/_cron has been validated.
Write access to /var/www/html/glpi/files has been validated.
Write access to /var/www/html/glpi/files/_dumps has been validated.
Write access to /var/www/html/glpi/files/_graphs has been validated.
Write access to /var/www/html/glpi/files/_lock has been validated.
Write access to /var/www/html/glpi/files/_pictures has been validated.
Write access to /var/www/html/glpi/files/_plugins has been validated.
Write access to /var/www/html/glpi/files/_rss has been validated.
Write access to /var/www/html/glpi/files/_sessions has been validated.
Write access to /var/www/html/glpi/files/_tmp has been validated.
Write access to /var/www/html/glpi/files/_uploads has been validated.
Web access to files directory is protected
For security reasons, SELinux mode should be Enforcing.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/html/glpi
GLPI_CONFIG_DIR: /var/www/html/glpi/config
GLPI_VAR_DIR: /var/www/html/glpi/files
GLPI_MARKETPLACE_DIR: /var/www/html/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: [email protected]
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /var/www/html/glpi/files
GLPI_CACHE_DIR: /var/www/html/glpi/files/_cache
GLPI_CRON_DIR: /var/www/html/glpi/files/_cron
GLPI_DUMP_DIR: /var/www/html/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/www/html/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/www/html/glpi/files/_locales
GLPI_LOCK_DIR: /var/www/html/glpi/files/_lock
GLPI_LOG_DIR: /var/www/html/glpi/files/_log
GLPI_PICTURE_DIR: /var/www/html/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/www/html/glpi/files/_plugins
GLPI_RSS_DIR: /var/www/html/glpi/files/_rss
GLPI_SESSION_DIR: /var/www/html/glpi/files/_sessions
GLPI_TMP_DIR: /var/www/html/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/www/html/glpi/files/_uploads
GLPI_INVENTORY_DIR: /var/www/html/glpi/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/html/glpi/locales
GLPI_VERSION: 10.0.1
GLPI_SCHEMA_VERSION: 10.0.1@a130db99c7d9b131c2e2ea59fe0d6260fe93d831
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.2.0
GLPI_YEAR: 2022
Libraries
 
htmlawed/htmlawed version 1.2.6 in (/var/www/html/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.4.4 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/glpi/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/glpi/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 in (/var/www/html/glpi/vendor/symfony/polyfill-php81)
phpCas version 1.4.0 in (/usr/share/pear)
SQL replicas
 
Not active
Plugins list
 
	addressing           Name: Adressage IP                   Version: 3.0.0      State: Enabled
	advancedplanning     Name: advancedplanning               Version: 1.1.0      State: Enabled
	glpiinventory        Name: GLPI Inventory                 Version: 1.0.1      State: Enabled

Anything else?

No response

IP addresses disappears after Network Discovery

Bug reporting acknowledgment

Yes, I read it

Professional support

Yes, I know

Describe the bug

Hi

I have made Net Discovery and list of printers looks like this:
Screenshot_236

After Net Inventory list of printers looks like like this:
Screenshot_237

IP addresses dissapire after Network Discovery.

Also by default settings after some Net Discoverys and Net Invenrories printers duplicate and their number increases.
I have chenged rules printer like this to sort by MAC:
Screenshot_239

p/s Yesterday I had a problem due the fact that GLPI-Agent v1.2-git70294ae7 nightly build didn't want to start tasks. I came back to previous GLPI-Agent v1.2-git73986331 nightly build verison.

To reproduce

  1. Make Net Discovery
  2. Make Net Infentory
  3. Look Assets-Printers
  4. Ip addresses dissapired

Expected behavior

Should be fine.

Operating system

Linux

GLPI Agent version

Nightly build (git version in additional context below)

GLPI version

10.0.0-rc1

GLPIInventory plugin or FusionInventory for GLPI plugin version

1.0.0-rc4

Additional context

No response

Update plugin failed

Hello,

When I update the plugin to 1.0.0-rc7 I have error message :

Use core computers (1 seconde)

  • Erreur durant l'éxecution de la requête : UPDATE glpi_computers AS computers INNER JOIN ( SELECT computers_id, last_inventory_update FROM glpi_plugin_glpiinventory_inventorycomputercomputers ) AS plugin_computers ON plugin_computers.computers_id = computers.id SET computers.last_inventory_update = plugin_computers.last_inventory_update ; - L'erreur est Unknown column 'computers.last_inventory_update' in 'field list'

Thanks

The agent does not start the Collect task because of wrong agent_base_url

Bug reporting acknowledgment

Yes, I read it

Professional support

No response

Describe the bug

There is a problem with collecting data from the registry using the agent; after starting the task, the agent is in the prepared status, and its status does not change in the future.

#46

To reproduce

A test active task was created with 24/7 execution, with the collection of the registry of the glpi agent branch, namely the path of the certificate location and the specified group of computers on which the task must be performed. Details in the screenshots below.

Expected behavior

Getting data from the registry

Operating system

Linux

GLPI Agent version

Nightly build (git version in additional context below)

GLPI version

10.0.0-beta

GLPIInventory plugin or FusionInventory for GLPI plugin version

10.0.0-rc3

Additional context

GLPI version master.16615cb.tar.gz 2.02.2022.
GLPI agent version 1.1-git1d9ab8e9
agent_log.txt
php-errors.log
3
1
2

Can't Install Glpi Inventory plugin

H all,

I can't install the plugin from marketplace or manualy. glpi grinds indefinitely.
To rework, i must do service apache2 restart

In /files/_logs/migration_to_1.0.0-rc5.log, I get this everytime i try :

2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Migration Classname : Migration" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Update of plugin GLPI Inventory" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_agents" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_agents" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_agents" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_agentmodules" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_configs" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_configs" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Ajout des index d'unicité - glpi_plugin_glpiinventory_configs" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_entities" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_locks" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_locks" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_ignoredimportdevices" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_rulematchedlogs" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_unmanageds" @ 2022-03-04 15:06:40 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_unmanageds" @ 2022-03-04 15:06:48 [55@helpdesk]
8 secondes for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_unmanageds" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputercriterias" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputerblacklists" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_inventorycomputercomputers" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_computerlicenseinfos" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_computerremotemanagements" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblockinventorynames" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblockinventories" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblocksoftwares" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_dblocksoftwareversions" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobs" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_ipranges" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_ipranges_configsecurities" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_ipranges_configsecurities" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_configlogfields" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkportconnectionlogs" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkportconnectionlogs" @ 2022-03-04 15:06:48 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkporttypes" @ 2022-03-04 15:06:49 [55@helpdesk]
1 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkporttypes" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkports" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkports" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkportlogs" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printers" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printers" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printerlogs" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printerlogs" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printercartridges" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printercartridges" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_printercartridges" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Clean printers" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkequipments" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_networkequipments" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_configsecurities" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_configsecurities" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_statediscoveries" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deployfiles" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_entities" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_groups" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_profiles" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploypackages_users" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploymirrors" @ 2022-03-04 15:06:49 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups" @ 2022-03-04 15:06:50 [55@helpdesk]
1 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups_staticdatas" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_deploygroups_dynamicdatas" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_credentials" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_credentialips" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_registries" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_registries_contents" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_wmis" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_wmis_contents" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_files" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_collects_files_contents" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_tasks" @ 2022-03-04 15:06:50 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobs" @ 2022-03-04 15:07:00 [55@helpdesk]
10 secondes for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjoblogs" @ 2022-03-04 15:07:00 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_taskjobstates" @ 2022-03-04 15:07:00 [55@helpdesk]
0 seconde for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_timeslots" @ 2022-03-04 15:07:03 [55@helpdesk]
3 secondes for "Changement de la structure de la base de données - glpi_plugin_glpiinventory_timeslotentries" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Add Crontasks" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Migration Classname : Migration" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core capabilities" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core agent" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core SNMP credentials" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core network ports" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core network equipments" @ 2022-03-04 15:07:03 [55@helpdesk]
0 seconde for "Use core printers" @ 2022-03-04 15:07:04 [55@helpdesk]
1 seconde for "Use core printer logs" @ 2022-03-04 15:07:04 [55@helpdesk]
0 seconde for "Use core networkports logs" @ 2022-03-04 15:07:04 [55@helpdesk]
0 seconde for "Use core network ports types" @ 2022-03-04 15:07:04 [55@helpdesk]
0 seconde for "Use core unmanaged equipments" @

GLPI Version : 10-RC2
GLPI Inventory Plugin : 10-RC5
OS Version : Debian 10
PHP : 8.1.3

Others plugins works

HPE switches discovery/inventory, bug or feature?

Hello GLPI,
in our previous GLPI installation, with fusioninventory, one HPE stack = 1 network equipment with the total ports of the stack in port inventory. ( 5 x 48 ports if the stack is a 5 switches stack)

Now we are testing GLPI 10 and glpi-inventory.
After discovery task, HPE stacks are discovered, one equipment for one stack. No problem.
After inventory task, all switches are created, with their ports. For a 5 switches stack, I have 5 network equipment.

I have tried to play with rules to keep only one equipment, with all ports inventoried, but with no success.

Is this the normal? can it be fixed or this is the new way of glpi-inventory to inventory stacks?

Thanks

GLPI 10 - Network Discovery & SNMP Discovery issue

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

GLPI 10.0.0-rc3

Bug description

As guided, for Network discovery & SNMP Network Discovery, I installed "GLPI Inventory Plugin" - rc7 version (latest) on GLPI 10
Also, as guided I configured and followed all in GLPI inventory for NW discovery.

Here is the problem that I have:
In "Discovery status", I can see that It discovered something after the scan and also showed me "Total Discovery Devices"

but the problem is that NW devices discovered by the scan are NOT imported to GLPI 10. In "Discovery status", it showed that the device imported is none (I re-checked all rules in "Rules for import and link equipments")

Are there any bugs not importing any devices after either SNMP NW discovery or NW discovery scan?
Could you please advise in order to resolve the issue I am facing to?

Thank you in advance.

Relevant log output

No response

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

No field locking option

Version
GLPI 10.0.0 ( => /var/www/html/glpi)
GLPI Inventory Version: 1.0.0 State: Enabled

Bug description
I am losing my data because agents overwrite fields such as locations. I can't see what fields can be blocked.

The following were available for fusioninventory: Administration > Fusioninventory > General > General configuration > Locks tab.
I do not see it in GLPI inventory.

Additionally, no massive actions for setting field locking.

Steps To reproduce
Mass actions:
Assets > Computers > select a few > Action button > no "Locks (field)" option (the option was for version 9.5.6 and fusioninventory).

Anything else?
I found this: glpi-project/glpi#11397 I replaced the file, but that didn't fix the problem. There are still no Locks option in actions, and there is no global configuration for blocking fields in the plugin settings.

I found also: front/lockedfield.php However, this is only a list of what is currently blocked.

Cannot add a file to a deploy task in GLPI Inventory Plugin

Hello,

When I try to add a file to deploy task I end up with a white page saying:
"La page n'a pas été affichée, car l'entité de la demande est trop longue."

There is no error in php-errors.log

I don't know how to debug this.

A extra row without text is shown on the job list of a task

It seems the shown extra row is related to a "select all" function as if we select the bottom check box it also select the job. As only one job can be added to a task, the extra should simply be removed.
image

GLPI: 10.0.0-beta
GLPI-Inventory plugin: 10.0.0-beta1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.