[RESOLVED] Package: tis-glpi-plugin-export-to-glpi10

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
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 11:07

Hello everyone
I am testing the package with the latest version of WAPT (2.2.2.12388).

I have configured both INI files according to my servers, however I am unsure which account to use for the wapt_api.ini file.
I tested with several users (user created in WAPT, root account of the server - yes, it's bad, but it was just for testing).

In any case, I have a permissions problem on the WAPT server; apparently, the package audit is failing

Code: Select all

Auditing ln-glpi-plugin-export-to-glpi10
Audit aborted due to exception: 403 Client Error: FORBIDDEN for url: https://srvwapt.XXXXXXX.local//api/v3/hosts?columns=dmi,wmi,host_info,host_metrics,waptwua_status,wuauserv_status,host_audit%2Fglpi%2Fupload%2Fvalue%2Flastid,host_audit%2Fglpi%2Fupload%2Fvalue%2Fhash,host_capabilities,wapt_status&limit=10000
What needs to be corrected?

Sincerely,
Tom
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 11:41

Clarification:
If I access the address in a browser using, for example, my WAPT login, I correctly get a JSON result with the machines.
But if I put the same credentials in the wapt_api.ini file, I get an error.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 5, 2022 - 1:14 PM

If it works through your browser with the same credentials, it should work in the package, so it's strange.
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 1:43 PM

We agree, Simon, that's not normal.
I just tried with version 5 of the package and it's the same.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 2:18 PM

In the nginx acces.log file, I get this:

Code: Select all

172.16.50.116 - - [05/Aug/2022:14:11:12 +0200] "GET //api/v3/hosts?columns=host_audit%2Fglpi%2Fupload%2Fvalue%2Flastid,host_audit%2Fglpi%2Fupload%2Fvalue%2Fhash&limit=10000 HTTP/1.1" 401 88 "-" "wapt/2.2.2"
172.16.50.116 - waptregister [05/Aug/2022:14:11:12 +0200] "GET //api/v3/hosts?columns=host_audit%2Fglpi%2Fupload%2Fvalue%2Flastid,host_audit%2Fglpi%2Fupload%2Fvalue%2Fhash&limit=10000 HTTP/1.1" 403 56 "-" "wapt/2.2.2"
172.16.50.116 - - [05/Aug/2022:14:11:12 +0200] "HEAD /ping HTTP/1.1" 200 0 "-" "wapt/2.2.2"
172.16.50.116 - - [05/Aug/2022:14:11:13 +0200] "POST /update_host HTTP/1.1" 200 1211 "-" "wapt/2.2.2"
Does this mean that the package uses the login "waptregister"?
If so, how is that possible given that the information in the wapt_api.ini file is different?
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 2:25 PM

Okay, I think I understand.

The problem with the package is that it only copies the INI files if they don't already exist; it doesn't update them!
I'll modify the package's install() function to fix that and we'll see...
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 2:29 PM

Now I'm not getting any more errors...
However, I have nothing in GLPI. The PC information isn't being updated.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 5, 2022 - 3:47 PM

Okay, I've tried everything, but nothing works; no information is being transmitted to GLPI 10 (the GLPI plugin, not Fusion, obviously).

I'll wait until it's fixed. I'll continue using my custom package for the GLPI agent (flat file copying, generating a scheduled task, and also using 'External Tools' to generate inventories on the fly without impacting audit time).

I'll keep an eye out for any updates.

Regards,
Tom.

P.S.: I can help if needed.
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 8, 2022 - 10:35

I see (from your email address) that you have support.

Can you contact us by phone?
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

August 8, 2022 - 4:11 PM

OK, I'll call you tomorrow :)
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
Locked