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-07-25 18:27:34

leont
Member
Registered: 2022-05-03
Posts: 6

GLPI Agent failing to sync inventory

I have glpi server set up with a self signed certificate.


The GLPI Agent 1.5 install is able to update the inventory when installing as I have the "RUNNOW=1" flag.
I have the no-ssl-check value set to 1 on the client machine

When trying to force and inventory with the below line. I get the following error

glpi-injector --file inventory.json --url https://glpi/front/inventory.php --debug

------------------------------------------------------------------------

Loading inventory.json...[7D276176] [agentid:4ac743d6-6bf4-1014-9f52-f70c414f27f4] ERROR: 500 Can't connect to glpi:443 (Bad file descriptor), Bad content as server response
DEBUG: Can't connect to glpi:443 (Bad file descriptor)

Bad file descriptor at C:/Program Files/GLPI-Agent/perl/vendor/lib/LWP/Protocol/http.pm line 50.

These elements were not sent:
inventory.json

Offline

#2 2023-07-26 10:34:29

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

Re: GLPI Agent failing to sync inventory

Hi leont,

glpi-injector is a script which not read the configuration. So you must completly configure it on the commandline and so use --no-ssl-check parameter.

P.S.: Just to be clear you're not forcing an inventory with glpi-injector, but you're uploading a locally generated inventory. I guess you forced the local inventory with glpi-inventory script.


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

Offline

#3 2023-07-26 10:42:28

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

Re: GLPI Agent failing to sync inventory

On windows, you can force an inventory using the configuration set during install by simply:

  • open an administrative console

  • change directory to glpi-agent installation folder

  • run:

    glpi-agent --force --logger=stderr

You can also simply access

http://127.0.0.1:62354/

unless you disabled glpi-agent httpd daemon and click on "Run now" or not running as a service.
You can also try to use glpi-agentmonitor (which also can be installed from the MSI package using AGENTMONITOR=1).


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

Offline

#4 2023-07-26 18:12:35

leont
Member
Registered: 2022-05-03
Posts: 6

Re: GLPI Agent failing to sync inventory

Adding the --no-ssl-check after my sync worked. Thank you!

Offline

Board footer

Powered by FluxBB