glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
212 stars 51 forks source link

Failure to detect memory slot size for VMware virtual machine with only one memory slot #571

Closed ChristopheLacaze closed 3 weeks ago

ChristopheLacaze commented 6 months ago

Bug reporting acknowledgment

Yes, I read it

Professional support

None

Describe the bug

Memory slot size reported by glpi-agent for a Vmware virtual machine with 2 GB memory is wrong. The value returned by the agent is 1732 (ie. hardware memory value) and not 2048 MB as returned by dmidecode

To reproduce

Create a Vmware virtual machine with speciifcation :

execute glpi-agent

Expected behavior

Glpi agent should report one 2048 MB size memory slot.

Operating system

Linux

GLPI Agent version

1.7

GLPI version

10.0.x (See additional context below)

GLPIInventory plugin or FusionInventory for GLPI plugin version

Not applicable

Additional context

Here are results of dmidecode command and local inventory file generated on the virtual machine dmidecode-and-glpi-agent-inventory.zip

g-bougard commented 3 weeks ago

Hi @ChristopheLacaze

it seems I forgot to close this issue after I merged #572.

So I'm closing it now, but feel free to reopen if the problem is indeed not fixed.