You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-10-31 17:52:00

MateusDorota
Member
Registered: 2024-10-31
Posts: 3

Inventory via GLPI Agent not going through after updating XAMPP

Hello! This is my first post on the forum, I hope I'm using the right category and not doubling the topic (as much as I searched, couldn't find my particular issue).

My setup: GLPI is hosted on a Windows 10 virtual machine, using xampp and encrypted via OpenSSL-generated certificate (working on https). Using GLPI Agent version 1.11 to run remote inventories, authenticated via SSL Fingerprint, handled by built-in inventory functionality.

Recently I upgraded GLPI from 10.0.14 to 10.0.16, no troubles here. However, I decided to upgrade XAMPP too, as we had an older version running PHP 8.0. So I backed up the database and website, uninstalled old version of xampp (I guess huge mistake I didn't back it up) and installed the new one. Restored the database, and put the website folder in htdocs folder. Then I procceeded to setup SSL in Apache.
So far so good.

That's when I noticed that Agents couldn't perform an inventory to the server anymore.

Below a compilation of everything that might be worth noting:

Parameters for GLPI Agent installation:

msiexec /i "GLPI-Agent-1.11-x64.msi" /quiet RUNNOW=1 SERVER="https://glpi.my-domain.local/" ADD_FIREWALL_EXCEPTION=1 SSL_FINGERPRINT=fingerprint TASKS=Inventory,NetInventory LISTEN=1 EXECMODE=1 LAZY=0

In GLPI Agent logs I see:

[Thu Oct 31 16:20:43 2024][info] target server0: server https://glpi.my-domain.local/
[Thu Oct 31 16:20:43 2024][info] sending prolog request to server0
[Thu Oct 31 16:20:45 2024][error] [http client] unexpected content, starting with: 
[Thu Oct 31 16:20:45 2024][error] No supported answer from server at https://glpi.my-domain.local/

After running

>glpi-agent --logger=stderr

I could see

[info] target server0: server https://glpi.my-domain.local/
[info] sending prolog request to server0
GLPI::Agent::XML: Unsupported value type for script: '

         $(function() {
            i18n.setLocale('pl_PL');
         });            $(function() {
               $.ajax({
                  type: 'GET',
                  url: '/glpi/front/locale.php?domain=glpi&v=40-signs-long-string',
                  success: function(json) {
                     i18n.loadJSON(json, 'glpi');
                  }
               });
            });

//'
[error] [http client] unexpected content, starting with:
[error] No supported answer from server at https://glpi.my-domain.local/

In Apache logs I can see that the requests are coming, for both SSL:

[31/Oct/2024:16:20:44 +0100] my-IP-address TLSv1.3 TLS_AES_256_GCM_SHA384 "POST / HTTP/1.1" -
[31/Oct/2024:16:20:44 +0100] my-IP-address TLSv1.3 TLS_AES_256_GCM_SHA384 "GET /glpi/ HTTP/1.1" 9531

and Access:

 my-IP-address - - [31/Oct/2024:16:20:44 +0100] "POST / HTTP/1.1" 302 -
my-IP-address  - - [31/Oct/2024:16:20:44 +0100] "GET /glpi/ HTTP/1.1" 200 9531

Quite frankly I'm at total loss for ideas. I checked every setting I could think of in Apache and GLPI, nothing brought any results. It looks as if built-in inventory didn't work, or didn't process the requests?

I have been at it for 8 hours, reading through forums, "guides", documentation... Couldn't find anything that would help me. However I am fairly fresh to the topic, so chances are I missed something.

Any advices and suggestions are very much welcome,
thank you in advance

Offline

#2 2024-11-01 14:09:48

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: Inventory via GLPI Agent not going through after updating XAMPP

I don't have any clue for the agent/inventory issue but some general advice:
Avoid using XAMPP/WAMPP in production.

It isn't meant to be used that way. It is supposed to be an easy way to set up an initial environment for brand-new web developers.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-11-04 09:53:23

MateusDorota
Member
Registered: 2024-10-31
Posts: 3

Re: Inventory via GLPI Agent not going through after updating XAMPP

We are aware of that, cconard. But for now, we deemed it "good enough"

Offline

#4 2024-11-05 10:53:39

MateusDorota
Member
Registered: 2024-10-31
Posts: 3

Re: Inventory via GLPI Agent not going through after updating XAMPP

Well, I've (sort of) figured it out.

The actual issue is: our GLPI currently doesn't recognize Inventories sent to address

https://glpi.my-domain.local/

After changing path in Agent to either

https://glpi.my-domain.local/glpi/front/inventory.php

OR

https://glpi.my-domain.local/glpi/marketplace/glpiinventory/

(the latter for installed GLPI Inventory plugin).

So I guess the question changes to: Is it possible, or rather how to achieve that, for GLPI to accept Inventories at

https://glpi.my-domain.local/

?
That was the way we've done it before, so I'm positive there IS some way, however the know-how has been lost due to time passed

Offline

#5 2024-11-05 13:57:34

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,809
Website

Re: Inventory via GLPI Agent not going through after updating XAMPP

When you use the GLPI Inventory plugin for the additional features beyond basic inventory, you need to submit the inventories through the plugin's URL.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB