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 2023-03-03 15:56:31

m.zandi
Member
Registered: 2023-03-03
Posts: 5

GLPI Agent will kown bei GLPI Server but not as Computer

Hi,
I'm very beginner on GLPI.

I installed GLPI 10.0.6 and GLPI Inventory Plugin 1.1.0 (not Marketplace) under a Windows server successfully, also "GLPI Agent 1.5-git10c4ec5e" on the same server.
After a while GLPI collected the server inventory under computer and all its installed components, great :)

My issue is, that I'm not able to collect Inventory from other computers!
I installed GLPI Agent 1.5-git10c4ec5e and newer ones on 3 more computer with the same configuration, all 3 agents are visible under GLPI Inventory, but no computer inventory are collected!

This is the GLPI Agent log on one of my computers:

[Fri Mar  3 14:20:35 2023][info] GLPI Agent service starting
[Fri Mar  3 14:20:36 2023][info] [http server] HTTPD service started on port 62354
[Fri Mar  3 14:20:37 2023][info] GLPI Agent memory usage: WSS=3805184 PFU=107687936
[Fri Mar  3 14:20:37 2023][info] target server0: next run: Fri Mar  3 15:11:41 2023 - http://My_IP/
[Fri Mar  3 14:20:55 2023][info] target server0: server http://My-IP/
[Fri Mar  3 14:20:55 2023][info] sending prolog request to server0
[Fri Mar  3 14:20:55 2023][info] server0 answer shows it supports GLPI Agent protocol
[Fri Mar  3 14:20:55 2023][info] running task Inventory
[Fri Mar  3 14:20:55 2023][info] New inventory from WS53-2023-03-03-14-20-35 for server0
[Fri Mar  3 14:21:53 2023][error] [http client] communication error: 500 Internal Server Error
[Fri Mar  3 14:21:53 2023][error] [http client] unexpected content, starting with: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www_w3_org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www_w3_org/1999/xhtml">
[Fri Mar  3 14:21:53 2023][info] running task Deploy
[Fri Mar  3 14:21:54 2023][error] [http client] Can't decode JSON content, starting with:
         

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

   <meta charset="utf-8" />
...
[Fri Mar  3 14:21:54 2023][info] Deploy task not supported by server0
[Fri Mar  3 14:21:54 2023][info] running task Collect
[Fri Mar  3 14:21:54 2023][error] [http client] Can't decode JSON content, starting with:
         

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

   <meta charset="utf-8" />
...
[Fri Mar  3 14:21:54 2023][info] Collect task not supported by server0
[Fri Mar  3 14:21:55 2023][info] target server0: next run: Fri Mar  3 15:14:36 2023 - http://My-IP/
[Fri Mar  3 14:21:55 2023][info] GLPI Agent memory usage: WSS=3526656 PFU=135458816
[Fri Mar  3 14:22:48 2023][info] running task Deploy: storage maintenance event

What did I wrong?
Can someone help?

Thanks in advance :)

Offline

#2 2023-03-06 12:14:27

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

Re: GLPI Agent will kown bei GLPI Server but not as Computer

Hi m.zandi,
you should first try to set the "server" URL on the agent configuration to:

http://My_IP/marketplace/glpiinventory

There's an explanation there: GLPI-Agent Documentation


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

Offline

#3 2023-03-06 16:17:43

m.zandi
Member
Registered: 2023-03-03
Posts: 5

Re: GLPI Agent will kown bei GLPI Server but not as Computer

Hi gbougard,
Thanks for reply, I installed the plug in version not marketplace.
I tried http://My_IP/plugins/glpiinventory as well, no result!

Hier is the new errors:

[Mon Mar  6 15:09:11 2023][info] target server0: server http://MY_IP/plugins/glpiinventory
[Mon Mar  6 15:09:11 2023][info] sending prolog request to server0
[Mon Mar  6 15:09:11 2023][error] [http client] communication error: 405 Method Not Allowed
[Mon Mar  6 15:09:11 2023][error] No supported answer from server at http://My_IP/plugins/glpiinventory
[Mon Mar  6 15:09:11 2023][info] target server0: next run: Mon Mar  6 15:10:11 2023 - http://My_IP/plugins/glpiinventory
[Mon Mar  6 15:10:11 2023][info] target server0: server http://My_IP/plugins/glpiinventory
[Mon Mar  6 15:10:11 2023][info] sending prolog request to server0
[Mon Mar  6 15:10:11 2023][error] [http client] communication error: 405 Method Not Allowed
[Mon Mar  6 15:10:11 2023][error] No supported answer from server at http://My_IP/plugins/glpiinventory
[Mon Mar  6 15:10:11 2023][info] target server0: next run: Mon Mar  6 15:12:11 2023 - http://My_IP/plugins/glpiinventory
[Mon Mar  6 15:10:11 2023][info] GLPI Agent memory usage: WSS=3469312 PFU=114913280
[Mon Mar  6 15:11:03 2023][info] running task Deploy: storage maintenance event

Offline

#4 2023-03-07 08:23:23

m.zandi
Member
Registered: 2023-03-03
Posts: 5

Re: GLPI Agent will kown bei GLPI Server but not as Computer

Update:
I added a "/" at the end of the server address an seems better, just get anothe error:

[Tue Mar  7 07:05:42 2023][info] New inventory from WS53.xxx.xx-2023-03-03-14-20-35 for server0
[Tue Mar  7 07:06:37 2023][error] [http client] unexpected content, starting with: <!DOCTYPE html>

Can someone explain please :-)

Offline

#5 2023-03-07 10:49:44

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

Re: GLPI Agent will kown bei GLPI Server but not as Computer

Hi m.zandi,

sorry, I read too quickly your first post and missed the "not" before Marketplace. But you read the doc and fixed my mistake yourself, nice wink

The fact you need to add "/" to obtain a different comportement is to me a symptom of a misconfiguration problem in the http server where you installed GLPI. You talked about windows server, but did you installed on IIS or in a WAMP configuration ? Anyway, you reached my limits here. I hope another user with the same kind of configuration can help you.


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

Offline

#6 2023-03-07 11:29:02

m.zandi
Member
Registered: 2023-03-03
Posts: 5

Re: GLPI Agent will kown bei GLPI Server but not as Computer

Hi gbougard,

Thanks a lot for message and help.
GLPI ist installed under IIS and not WAMP.
Regards.

Offline

#7 2023-03-09 12:35:28

m.zandi
Member
Registered: 2023-03-03
Posts: 5

Re: GLPI Agent will kown bei GLPI Server but not as Computer

After reinstall and reconfig the IIS on Server everyting ist working fine.

Offline

Board footer

Powered by FluxBB