Page 1 of 1

[RESOLVED] WAPT GLPI link in ERROR status

Published: October 6, 2023 - 4:13 PM
by rwytxyjcukbnl
Good morning,

Currently on the latest version of WAPT in 2.4.0.14143, Enterprise version, a GLPI 9.2.3, the WAPT server on Windows 10 22H2 19045.3448 and the console on Windows Server 2019 (1809) 17763.4851. Most client workstations on Windows 10 or 11.

My problem: the audit looks green, but the machines do not appear in GLPI, or rather, do not update since the server changed to version 2.3.

I followed the WAPT documentation available here: https://www.wapt.fr/fr/doc/wapt-console ... -glpi.html
I put the Fusion-Inventory package tis-glpi-plugin-export-to-glpi9 on the WAPT server (W10), I did change the glpi address in glpi.ini and the WAPT server address in wapt_api.ini, checked, tried a dozen addresses, just in case, but nothing works.

Auditing from the WAPT server (W10):

Code: Select all

wapt-get audit tis-glpi-plugin-export-to-glpi9
About to speak to waptservice...
2 tasks queued
Audit de XXX, [i]"tis"[/i]-glpi-plugin-export-to-glpi9 (tâche #36)
Pas de résultat d'audit pour XXX : OK
[i]"tis"[/i]-glpi-plugin-export-to-glpi9: OK
Inform the server of the status of this machine

On the console, the audit task is marked as green (Done), but in the audit data, the status is ERROR and the output

Code: Select all

HTTPConnectionPool(host='glpi.mydomain.lan', port=80): Max retries exceeded with url: /front/inventory.php (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x03DEA550>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
What did I miss?

Thank you for your help

Sincerely,

Re: WAPT GLPI link in ERROR status

Published: October 9, 2023 - 12:08 PM
by blemoigne
Hello,
I have the impression that you have not replaced the URL of your GLPI server (glpi.mydomain.lan).

Re: WAPT GLPI link in ERROR status

Published: October 9, 2023 - 12:19 PM
by blemoigne
In

Code: Select all

c:\program files (x86)\private\glpi.ini

Re: WAPT GLPI link in ERROR status

Published: October 12, 2023 - 6:30 PM
by dcardon
Hello Cédric,
There must be a typo in what you mentioned. These are indeed the following files:

Code: Select all

c:\program files (x86)\wapt\private\glpi.ini
c:\program files (x86)\wapt\private\wapt_api.ini
Sincerely,
Denis

Re: WAPT GLPI link in ERROR status

Published: October 13, 2023 - 4:05 PM
by rwytxyjcukbnl
Hello,

The glpi.ini and wapt_api.ini files in the C:\Program Files (x86)\wapt\private folder were correctly configured.
However, I had a glpi_api.ini file in this folder that I hadn't configured.
I entered the credentials and the server address (which were indeed in glpi.mydomain.lan), ran another audit, and it works!
The problem stemmed from the glpi_api.ini file instead of the glpi.ini file.
Thank you for your help.

Sincerely,

Sandrine