[RESOLVED] WAPT GLPI link in ERROR status

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
rwytxyjcukbnl
Messages: 2
Registration: Oct 06, 2023 - 12:45

October 6, 2023 - 4:13 PM

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,
Last edited by rwytxyjcukbnl on Oct 16, 2023 - 4:44 PM, edited 2 times.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

October 9, 2023 - 12:08

Hello,
I have the impression that you have not replaced the URL of your GLPI server (glpi.mydomain.lan).
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

October 9, 2023 - 12:19

In

Code: Select all

c:\program files (x86)\private\glpi.ini
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 12, 2023 - 6:30 PM

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
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
rwytxyjcukbnl
Messages: 2
Registration: Oct 06, 2023 - 12:45

October 13, 2023 - 4:05 PM

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
Locked