glpi-project / glpi-inventory-plugin

GLPI Inventory plugin
GNU Affero General Public License v3.0
43 stars 24 forks source link

Computers inventoried by agent dissappear after a while #516

Closed fabriceverkor closed 2 weeks ago

fabriceverkor commented 3 weeks ago

Describe the bug

Some Windows notebook appear in Computers, after run of GLPI agent, but dissappear after a while. I have checked in database directly : the computer name is no more in glpi_computers. Same think for the related agent. I red some posts suggesting that update rules based on serial may have this effect. I disabled the corresponding rule. Note better.

To reproduce

1- force run of GLPI agent o computer 2- check that computer is back in Computers 3- check that computer has dissappeared again

Expected behavior

Computer shoud not dissappear

Operating system

Windows

GLPI Agent version

Other (See additional context below)

GLPI version

10.0.10

GLPIInventory plugin

1.3.3

Additional context

GLPI Agent : 1.7.3

fabriceverkor commented 2 weeks ago

I found the reason : the rule Computer update (by mac). All this PCs have a VPN client which creates a virtual interface with the same MAC address. But as not all computers were impacted, I suspect that it happens when users are connected through this VPN interface. I guess that the rule above compares the MAC address of the interface used to connect to GLPI with the already existing ones.