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 2025-03-25 11:25:44

viteok1
Member
Registered: 2025-03-25
Posts: 10

GLPI Agent not work

Hello,

I have a Debian 12 VM with GLPI 10.1.18 installed, and a Windows 11 VM with the GLPI agent installed. The problem is that it does not appear in the GLPI inventory (the "enable inventory" option is activated).

I have tested bidirectional pings, there is no firewall, and I can connect to GLPI in a browser on Windows 11... but I cannot get it to appear in the inventory.

Here are the logs from the GLPI agent:
x VJ ( ,J, S R22Q Q*.I,)- j

[Tue Mar 25 09:50:19 2025][error] No supported answer from server at ''http://199.13.10.62/glpi''
[Tue Mar 25 09:50:19 2025][info] target server0: next run: Tue Mar 25 10:06:19 2025 - ''http://199.13.10.62/glpi''
[Tue Mar 25 09:50:20 2025][info] GLPI Agent memory usage: WSS=3321856 PFU=178450432
[Tue Mar 25 10:06:19 2025][info] target server0: server ''http://199.13.10.62/glpi''
[Tue Mar 25 10:06:19 2025][info] sending prolog request to server0
[Tue Mar 25 10:06:19 2025][error] [http client] can't uncompress content starting with:

x VJ ( ,J, S R22Q Q*.I,)- j

Help please, Thanks!

Offline

#2 2025-03-25 12:09:47

António123
Member
Registered: 2025-03-20
Posts: 27

Re: GLPI Agent not work

check if your vm is in Bridged Adapter, because I had a similar problem and I solved it by doing this


GLPI 10.0.18 - installed on ubunto server
English posts are translated

Offline

#3 2025-03-25 12:24:46

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

Thanks Antonio123,
I am, but don't walk sad

Offline

#4 2025-03-25 13:04:02

António123
Member
Registered: 2025-03-20
Posts: 27

Re: GLPI Agent not work

try reinstalling agent and on the server don't put /glpi use only ("http:******62")


GLPI 10.0.18 - installed on ubunto server
English posts are translated

Offline

#5 2025-03-25 13:45:57

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

I tried, but it doesn't work (which seems normal) because only the IP address without "/glpi/" takes me to the Apache2 server and not to GLPI. But thank you!

[Tue Mar 25 12:27:30 2025][error] Failed to handle run event for inventory
[Tue Mar 25 12:27:32 2025][info] running task Inventory: run event
[Tue Mar 25 12:27:32 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0
[Tue Mar 25 12:28:32 2025][info] GLPI Agent exiting (8568)
[Tue Mar 25 12:28:41 2025][info] GLPI Agent service starting
[Tue Mar 25 12:28:45 2025][info] [http server] HTTPD service started on port 62354
[Tue Mar 25 12:28:48 2025][info] GLPI Agent memory usage: WSS=4362240 PFU=115965952
[Tue Mar 25 12:28:48 2025][info] target local0: next run: Tue Mar 25 12:57:21 2025 - C:/Program Files/GLPI-Agent
[Tue Mar 25 12:28:48 2025][info] target server0: next run: Tue Mar 25 12:57:23 2025 - http://199...62
[Tue Mar 25 12:28:52 2025][error] Failed to handle run event for inventory
[Tue Mar 25 12:28:53 2025][info] running task Inventory: run event
[Tue Mar 25 12:28:53 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0

Offline

#6 2025-03-25 14:23:17

António123
Member
Registered: 2025-03-20
Posts: 27

Re: GLPI Agent not work

[Tue Mar 25 12:28:53 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0
but this line means that it's already working, or still not working


GLPI 10.0.18 - installed on ubunto server
English posts are translated

Offline

#7 2025-03-25 14:55:36

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 562
Website

Re: GLPI Agent not work

x VJ ( ,J, S R22Q Q*.I,)- j

[Tue Mar 25 09:50:19 2025][error] No supported answer from server at ''http://199.13.10.62/glpi''

This probably means you have a wrong configuration somewhere in GLPI. Check your GLPI configuration files and look for a line or other chars before any "<?php" tag... also check there's no closing tag "?>" as this is not expected in configuration files.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#8 2025-03-25 17:01:20

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

Thank you, gbougard!

I checked, but I can't find it. I reinstalled the agent without "Quick Installation" (following advice from an internet user). 
Here are the logs from the current installation:
[Tue Mar 25 15:39:11 2025][info] target server0: next run: Tue Mar 25 16:22:31 2025 - http://199..62/glpi
[Tue Mar 25 15:40:47 2025][info] running task Inventory: run event
[Tue Mar 25 15:40:47 2025][info] New inventory from Windows-Client-2025-03-25-15-24-53 for local0
[Tue Mar 25 15:41:58 2025][info] Inventory saved in C:/Program Files/GLPI-Agent/Windows-Client-2025-03-25-15-24-53.xml
[Tue Mar 25 15:42:01 2025][error] Failed to handle run event for inventory
[Tue Mar 25 15:42:01 2025][info] GLPI Agent memory usage: WSS=3248128 PFU=139198464
[Tue Mar 25 15:44:36 2025][error] [http server] invalid request type: GET
[Tue Mar 25 15:44:37 2025][error] Failed to handle run event for remoteinventory
[Tue Mar 25 15:44:37 2025][error] Failed to handle run event for inventory
[Tue Mar 25 15:44:37 2025][info] running task Inventory: run event
[Tue Mar 25 15:44:37 2025][info] New inventory from Windows-Client-2025-03-25-15-24-53 for local0
[Tue Mar 25 15:45:13 2025][info] Inventory saved in C:/Program Files/GLPI-Agent/Windows-Client-2025-03-25-15-24-53.xml
[Tue Mar 25 15:45:13 2025][info] target local0: next run: Tue Mar 25 16:44:13 2025 - C:\Program Files\GLPI-Agent\
[Tue Mar 25 15:45:13 2025][info] GLPI Agent memory usage: WSS=3276800 PFU=147243008

Offline

#9 2025-03-25 19:08:57

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 562
Website

Re: GLPI Agent not work

...[error] [http server] invalid request type: GET

This means you have a server configuration issue. I see this error for the first time ever... This is not glpi-agent you need to cleanly reinstall but your glpi server.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#10 2025-03-26 10:10:53

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

Hello gbougard

You are right, i reinstalled my GLPI server and installed the agent version: v1.14-gitbc73ef73 nightly build. The Windows client is now appearing in the GLPI inventory.

Thank you!

Offline

#11 2025-03-26 13:16:23

denisl
Member
Registered: 2021-03-25
Posts: 16

Re: GLPI Agent not work

I just encountered the same situation : Debian 12 VM with GLPI 10.1.18 and GLPI Inventory 1.50 plugin installed. A Windows 11 VM with the GLPI agent 1.13 installed. This GLPI server is only for testing so I did not set it to https. Its URL is then http://IP-ADDRESS.

By testing I discovered the 1.13 agent version is somewhat buggy with a non-https GLPI server address => "[error] Failed to handle run event for inventory" can be found in the GLPI agent log.

I just uninstalled it and installed the 1.12 version instead => inventory is working.

BTW
- I also have GLPI servers in production on https where GLPI agent 1.13 is working as usual.
- "[error] [http server] invalid request type: GET" => means you probably mistyped the server URL when installing the agent. Check here (h t t p s://glpi-agent.readthedocs.io/en/latest/configuration.html#available-parameters) and choose the right URL depending on your GLPI server inventory configuration.

Last edited by denisl (2025-03-26 13:29:54)

Offline

#12 2025-03-26 13:34:34

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

This problem is solved. Now i have one other ....

I can access my GLPI server using http://localhost/, but I can't access it via http://localhost/glpi. I added an alias Alias "/glpi" "/var/www/html/glpi/public", but it doesn’t work.

I’ll share my VirtualHost configuration, which I set up following the official documentation.

If you could give me a hand, I’d really appreciate it! Thanks in advance!

<VirtualHost *:80>
ServerName localhost

DocumentRoot /var/www/html/glpi/public
Alias "/glpi" "/var/www/html/glpi/public"

<Directory /var/www/html/glpi/public>
    Require all granted

    RewriteEngine On

    RewriteCond %{HTTP:Authorization} ^(.+)$
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>

Offline

#13 2025-03-26 15:08:48

viteok1
Member
Registered: 2025-03-25
Posts: 10

Re: GLPI Agent not work

Finally, i found a solution that works. In the VirtualHost configuration, you need to add the alias in the following line: ,,RewriteRule ^(.*)$ glpi/index.php [QSA,L]"

Last edited by viteok1 (2025-03-26 15:09:14)

Offline

Board footer

Powered by FluxBB