WAPT 2.3 - GLPI 9

Questions about WAPT Server / Requests and help related to the WAPT server
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
MIKL
Messages: 5
Registration: Oct 26, 2022 - 08:57

February 23, 2023 - 10:06 AM

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
MIKL
Messages: 5
Registration: Oct 26, 2022 - 08:57

February 23, 2023 - 3:40 PM

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
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

February 24, 2023 - 09:58

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
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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

February 24, 2023 - 10:48

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?
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 7, 2023 - 10:12

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...
Debian 11
WAPT Version: 2.4.0.14143
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 7, 2023 - 10:57

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
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
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 7, 2023 - 11:33

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
Debian 11
WAPT Version: 2.4.0.14143
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 10, 2023 - 08:54

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
Debian 11
WAPT Version: 2.4.0.14143
Locked