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-09-17 04:24:44

rikardoperu
Member
From: Perú
Registered: 2023-08-28
Posts: 4

GLPI Inventory Agent 1.5 does not connect to the server

Hi guys
I have version 10.0.9 installed on Ubuntu Server, after configuring the server with https, I installed agent 1.5 and I have the following error message:

admini@invent:/$ systemctl status glpi-agent.service
● glpi-agent.service - GLPI agent
     Loaded: loaded (/lib/systemd/system/glpi-agent.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-09-15 12:13:57 -05; 1 day 9h ago
       Docs: man:glpi-agent
   Main PID: 774482 (glpi-agent: wai)
      Tasks: 1 (limit: 9425)
     Memory: 73.4M
     CGroup: /system.slice/glpi-agent.service
             └─774482 glpi-agent: waiting

sep 16 19:16:55 invent glpi-agent[774482]: [error] No supported answer from server at https:// invent.empresa.com.pe/plugins/glpiinventory
sep 16 19:16:55 invent glpi-agent[774482]: [info] target server0: next run: Sat Sep 16 20:16:55 2023 - https:// invent.ripley.com.pe/plugins/glpiinventory
sep 16 19:17:04 invent glpi-agent[774482]: [debug] [http server] GET request / from client 10.21.130.8
sep 16 19:17:04 invent glpi-agent[774482]: [debug] Trusted target ip: 10.21.130.7/32, ::ffff:a15:8207/128
sep 16 19:17:04 invent glpi-agent[774482]: [debug] [http server] response status 200
sep 16 20:16:55 invent glpi-agent[774482]: [info] target server0: server https:// invent.empresa.com.pe/plugins/glpiinventory
sep 16 20:16:55 invent glpi-agent[774482]: [info] sending prolog request to server0
sep 16 20:16:55 invent glpi-agent[774482]: [error] [http client] internal response: 500 Can't connect to invent.empresa.com.pe:443 (certificate verify failed), SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
sep 16 20:16:55 invent glpi-agent[774482]: [error] No supported answer from server at https:// invent.empresa.com.pe/plugins/glpiinventory
sep 16 20:16:55 invent glpi-agent[774482]: [info] target server0: next run: Sat Sep 16 21:16:55 2023 - https:// invent.empresa.com.pe/plugins/glpiinventory

The Apache server certificate is locally self-signed, how do I configure the agent to use the same certificate?
thks

Offline

#2 2023-09-18 16:09:35

talipcakir
Member
From: Istanbul
Registered: 2023-08-23
Posts: 16

Re: GLPI Inventory Agent 1.5 does not connect to the server

echo "" | openssl s_client -host {HOST} -port 443 -showcerts | awk '/BEGIN CERT/ {p=1} ; p==1; /END CERT/ {p=0}' > mycert.pem
sudo mkdir /usr/local/share/ca-certificates/extra
sudo cp root.cert.pem /usr/local/share/ca-certificates/extra/mycert.crt
sudo update-ca-certificates

It may be necessary to import a certificate. If you are using GUI, you can also import the certificate by saving it with your browser.

Offline

Board footer

Powered by FluxBB