Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Linux Agent : Deflating problem

Hi

We try to launch a linux agent. We have follow this doc :

https://wiki.ocsinventory-ng.org/03.Basic-documentation/Setting-up-the-UNIX-agent-using-repository-on-client-computers/#introduction

We have installed it on a Debian 13 : 

Operating System: Debian GNU/Linux 13 (trixie)
Kernel: Linux 6.12.57+deb13-amd64

The agent does not launch :

#ocsinventory-agent --debug
Duplicate specification "r|realm=s" for option "r"
Duplicate specification "P|proxy=s" for option "p"
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.10.0
[debug] Log system initialised (Stderr)
[debug] --scan-homedirs missing. Don't scan user directories
[debug] Accountinfo file: /var/lib/ocsinventory-agent/https:__ocs.XXX.fr_ocsreports_/ocsinv.adm
[debug] OCS Agent initialised
[debug] Turns hooks on for /etc/ocsinventory/modules.conf
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.10.0
[debug] Log system initialised (Stderr)
[debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.10.0
[debug] Log system initialised (Stderr)
[debug] Calling handlers : `start_handler'
[debug] [download] Calling download_start_handler
[debug]  - LWP loaded
[debug]  - LWP::Protocol::https loaded
[debug] [snmpscan] Calling snmp_start_handler
[debug]  - Net::SNMP loaded
[debug] Compress::Zlib is available.
[debug] Calling handlers : `prolog_writer'
[debug] checking XML
[debug] sending XML
[debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
  <DEVICEID>ocslinuxagent-2025-12-18-15-26-20</DEVICEID>
  <QUERY>PROLOG</QUERY>
</REQUEST>
[error] Deflating problem

# cat /etc/ocsinventory/ocsinventory-agent.cfg
# OCS Agent cfg

# local=/var/lib/ocsinventory-agent/reports
server=https://ocs.XXX.fr/ocsreports/
log=/var/log/ocsinventory-client/ocs-agent.log
ssl=1

We have downloaded the OCS server cert :

# pwd
/var/lib/ocsinventory-agent/https:__ocs.XXX.fr_ocsreports_
root@ocslinuxagent /v/l/o/https:__ocs.XXX.fr_ocsreports_# ll
total 12K
-rw-r--r-- 1 root root 2,9K 18 déc.  15:30 cacert.pem
-rw-r--r-- 1 root root   52 18 déc.  15:26 ocsinv.adm
-rw-r--r-- 1 root root   70 18 déc.  15:26 ocsinv.conf

# nmap ocs.XXX.fr
Starting Nmap 7.95 ( https://nmap.org ) at 2025-12-18 15:44 CET
Nmap scan report for ocs.XXX.fr (172.16.1.53)
Host is up (0.00058s latency).
Not shown: 999 filtered tcp ports (no-response)
PORT    STATE SERVICE
443/tcp open  https
Nmap done: 1 IP address (1 host up) scanned in 4.88 seconds

We have Windows Agent (almost 250 PC) which are working like a charm. So we think it's not a server problem.

Any help would be appreciated :)

Regards

Marc

ago in OCS Inventory NG agent for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...