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-05-08 09:45:41

krischeu
Member
Registered: 2023-10-26
Posts: 40

[http client] Can't decode JSON content

Hi,
I found some log entries, which dont seems to be ok.

Can anybody give me a hand to fix this?

Installed is Agent 1.7.1 and Server Debian 12.5 with glpi 10.0.14

[Wed May  8 08:56:29 2024][info] GLPI Agent service starting
[Wed May  8 08:56:30 2024][info] [http server] HTTPD service started on port 62354
[Wed May  8 08:56:31 2024][info] GLPI Agent memory usage: WSS=3772416 PFU=107716608
[Wed May  8 08:56:31 2024][info] target server0: next run: Wed May  8 08:56:29 2024 - http://glpi.technologie.local/
[Wed May  8 08:56:31 2024][info] target server0: server http://glpi.technologie.local/
[Wed May  8 08:56:31 2024][info] sending prolog request to server0
[Wed May  8 08:56:32 2024][info] server0 answer shows it supports GLPI Agent protocol
[Wed May  8 08:56:32 2024][info] running task Deploy
[Wed May  8 08:56:32 2024][error] [http client] Can't decode JSON content, starting with: 
         

<!DOCTYPE html>
<html lang="de"       >
<head>
   <title>Authentifizierung - GLPI</title>

   <meta charset="utf-8" />
...
[Wed May  8 08:56:32 2024][info] Deploy task not supported by server0
[Wed May  8 08:56:34 2024][info] running task Inventory

Offline

#2 2024-05-15 08:44:17

krischeu
Member
Registered: 2023-10-26
Posts: 40

Re: [http client] Can't decode JSON content

I found this at my client at C:\Program Files\GLPI-Agent\etc

It seems to be not configured anymore?

# send tasks results to a GLPI server
#server = http://server.domain.com/
# send tasks results to a GlpiInventory plugin installed via marketplace
# Read this caution note in documentation to find the right URL:
# https://glpi-agent.readthedocs.io/en/latest/configuration.html#server
#server = http://server.domain.com/glpi/marketplace/glpiinventory/
# send tasks results to a FusionInventory for GLPI server
#server = http://server.domain.com/glpi/plugins/fusioninventory/
# write tasks results in a directory
#local = /tmp

Last edited by krischeu (2024-05-15 08:45:00)

Offline

#3 2024-09-04 18:05:24

larsen
Member
Registered: 2024-09-04
Posts: 7

Re: [http client] Can't decode JSON content

Newbie here. Not sure if the agent.cfg is used at all. Afaik the server is configured via

HKEY_LOCAL_MACHINE\SOFTWARE\GLPI-Agent

Are you using the "GlpiInventory plugin via Marketplace"?
This was the problem for me, see glpi-agent.readthedocs.io/en/latest/configuration.html#server

In that case, change the server URL to "http[:]//glpi.technologie.local/marketplace/glpiinventory/" (without the brackets, not allowed to post links here)

Offline

Board footer

Powered by FluxBB