Page 1 of 1

WAPT 2.3 - GLPI 9

Published: February 23, 2023 - 10:06 AM
by MIKL
Hello,
I'm creating this new topic because I haven't found an answer in the other sections.
Here's the problem:
I want to deploy the workstation inventory using the WAPT agent and GLPI 9.
This morning, I installed version 2.3 (previously 2.2) on the Windows server
, following the documentation: https://www.wapt.fr/fr/doc/wapt-console ... -glpi.html.
It states that the agent is installed by default with WAPTServer (meaning the server will handle sending information to GLPI on our end).
However, the agent isn't installed.
If I perform a standard agent installation, as I did for our workstations, the installation is done under C:\Program Files... and the server appears correctly in the console. I can therefore deploy the GLPI-9x package.
The problem is... the server component is installed on the server's D:\ drive.
When I run a command-line audit: `wapt-get audit tis-glpi....`, it tells me that no package is installed. This is normal because the file used for this command is `wapt-get.ini` located on the D:\ drive, not the one on C:\Program Files....
So I'm stuck, unable to deploy the package but unable to run the audit to verify it's working.

Do you have any idea how to fix this problem? Should I install the agent on D:\, risking overwriting server configuration files?

Thanks in advance for your help! :D

Re: WAPT 2.3 - GLPI 9

Published: February 23, 2023 - 3:40 PM
by MIKL
Edit:
The server was recognized as having an agent after restarting.
I was therefore able to deploy the GLPI 9 package
I created a "local" account from the wapt console so that I could enter it in the requested file.
I have updated the glpi.ini and wapt_api.ini files
When I run the audit, I get the same message as here: viewtopic.php?p=10774
Unfortunately, the answer is not public.
If I access the URL indicated as an error in the package audit, and log in with the newly created account from the console, it works

Code: Select all

Auditing tis-glpi-plugin-export-to-glpi9
Audit aborted due to exception: 401 Client Error: UNAUTHORIZED for url: https://lenomduserveur.lenomdedomaine//api/v3/hosts?columns=host_audit%2Fglpi%2Fupload%2Fvalue%2Flastid,host_audit%2Fglpi%2Fupload%2Fvalue%2Fhash&limit=10000

Re: WAPT 2.3 - GLPI 9

Published: February 24, 2023 - 09:58
by dcardon
Hello Michael,

I understand that the username/password were successfully copied into the package, but was the package correctly reapplied to the machine, and do the glpi.ini and wapt_api.ini files have the correct values ​​on the server?

Regards,

Denis

Re: WAPT 2.3 - GLPI 9

Published: February 24, 2023 - 10:48 AM
by sfonteneau
To clarify what Denis said,

the password should not be included in the package itself.
You should take the provided packages without modifying them.

Deploy the package to a machine, then go to /opt/wapt/private or C:\Program Files (x86)\wapt\private to modify the files.

Is that what you did?

Re: WAPT 2.3 - GLPI 9

Published: March 7, 2023 - 10:12
by jdziadek
Hello, I'm also revisiting this topic; I would like to send the inventory via GLPI.
The documentation is a bit vague on some points, if I understand correctly.
Only one machine needs the tis-glpi-plugin-export-to-glpi9 package (for example), and this machine will send the inventories via GLPI?
If so, I installed the package on my WAPT server, it tells me the installation is OK, I trigger the inventory and I get this error:

Code: Select all

CRITICAL Audit tis-glpi-plugin-export-to-glpi9 : Exception: Package tis-glpi-plugin-export-to-glpi9 is not installed
I've correctly filled in my configuration files, etc...

Re: WAPT 2.3 - GLPI 9

Published: March 7, 2023 - 10:57 AM
by dcardon
Hi Julien,

could you please specify the server version, OS, etc. (see forum rules)? Is the agent running locally (does the server agent appear as connected in the console?)? Have the configuration .ini files been correctly filled out?

Regards,

Denis

Re: WAPT 2.3 - GLPI 9

Published: March 7, 2023 - 11:33
by jdziadek
Sorry for the lack of information, so I'm on a Debian Buster, with WAPT Enterprise in the latest version and the server client is showing up correctly in my console.
All configuration files are correctly filled out:
After digging through the logs, I just found the real error:

Code: Select all

Auditing ecl-glpi-plugin-export-to-glpi9
Audit aborted due to exception: 401 Client Error: UNAUTHORIZED for url: https://wapt.XXXXX.fr//api/v3/hosts?columns=host_audit%2Fglpi%2Fupload%2Fvalue%2Flastid,host_audit%2Fglpi%2Fupload%2Fvalue%2Fhash&limit=10000
Edit: So I have exactly the same behavior as MIKL. I didn't modify the package; I applied it as is to my server, and then I modified the config files.
If I log in manually with the correct user, I can see the file

Re: WAPT 2.3 - GLPI 9

Published: March 10, 2023 - 08:54
by jdziadek
I'm answering myself; in the end, it's a log bug
2023-03-10 08:47:23,222 DEBUG DB Start transaction
2023-03-10 08:47:23,223 CRITICAL Audit tis-glpi-plugin-export-to-glpi9: Exception: Package tis-glpi-plugin-export-to-glpi9 is not installed
2023-03-10 08:47:23,223 INFO Sending status to server
[...]
2023-03-10 08:47:23,434 INFO Status on server https://wapt.XXXXX.fr updated properly
2023-03-10 08:47:23,434 INFO update_server_status successful (data size 582)
I've just encountered a small bug in the user feedback system:
In my machine's history
Change from jdziadek@MONDOMAINE to jdziadek@mondomaine.lan@mondomaine.lan
And the domain no longer appears in the domain tab