glpi-project / glpi-agent

GLPI Agent
GNU General Public License v2.0
252 stars 61 forks source link

500 Cant Connect to on ESX Inventory #730

Closed nykroy closed 3 months ago

nykroy commented 3 months ago

Bug reporting acknowledgment

Yes, I read it

Professional support

None

Describe the bug

I need to inventory 2 of my ESX servers (version 7). I configured the ESX with the GLPI Inventory Plugin using the IP address (only the IP) and associated the login and password. Then I created a task for VMware.

When I force the inventory from the GLPI agent on the GLPI server (Rocky Linux 9 with Nginx and the latest GLPI agent version 1.10), I received this error:

[debug2] [http client] Not using compression
[debug2] http://127.0.0.1/plugins/glpiinventory/?action=getConfig&machineid=cmdb-2024-06-20-10-11-57&task[ESX]=2.11
[debug2] http://172.18.5.136/plugins/glpiinventory/b/esx/?action=getJobs&machineid=cmdb-2024-06-20-10-11-57
[info] Having to contact 2 remote ESX servers
[debug2] http://172.18.5.136/plugins/glpiinventory/b/esx/?action=setLog&msg=500%20Can%27t%20connect%20to%20172.26.112.151%3A443&machineid=cmdb-2024-06-20-10-11-57&code=ko&part=login&uuid=66accecd93a6f
[debug2] http://172.18.5.136/plugins/glpiinventory/b/esx/?action=setLog&code=ko&uuid=66accecd95517&part=login&machineid=cmdb-2024-06-20-10-11-57&msg=500%20Can%27t%20connect%20to%20172.26.112.152%3A443

I tried a telnet to port 443 on 172.26.112.152 and the communication is OK. I don't see any traffic on the physical firewalls (the Rocky Linux firewall is disabled). It seems like the GLPI agent doesn't send the task, but on the console I have this: image

Could you help me? Can it be a bug?

To reproduce

  1. Force vmware task on glpi website
  2. Force inventory on glpi server with sudo glpi-agent --logger=stderr --debug --debug --force

Expected behavior

connect and import data form esx

Operating system

Linux

GLPI Agent version

v1.10

GLPI version

10.0.15

GLPIInventory plugin or other plugin version

GLPI Inventory v1.3.5

Additional context

No response