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.

Help with getting Agent talking to new server

I have a new installation running on RHEL 8. Server version is 2.12, installed via RPM. Agent version is 2.10.1. The ocsreports site is up and running with SSL enabled. My only issue is getting the agent talking to the server. Debug log on the client machine looks like this:

COM SERVER => Sending fileGet request to URL <http://server_IP_Address/ocsinventory/deploy/label>

COM SERVER => fileGet response received <HTTP Status Code #400>

COM SERVER => Cleaning cURL library

AGENT => Failed to retrieve Label <HTTP Status Code #400>

AGENT => Sending Prolog

DID_CHECK => Read DeviceID <client_machine-2023-09-22-16-31-23> and MACs <xx:xx:xx:xx:xx:xx> in file <ocsinventory.dat>

COM SERVER => Initializing cURL library for sendRequest

COM SERVER => Using cURL without server authentication

COM SERVER => Disabling cURL proxy support

COM SERVER => Disabling cURL SSL server validation support

COM SERVER => Sending HTTP Post request to URL <http://server_IP_Address/ocsinventory>

COM SERVER => HTTP Post response received <HTTP Status Code #400>

COM SERVER => Cleaning cURL library

Most issues with HTTP Status Code #400 are due to the Agent version being higher than the server version. This is not the case here.
Agent ini file looks like this:

[OCS Inventory Agent]

ComProvider=ComHTTP.dll

Debug=1

Local=

NoSoftware=0

HKCU=0

NoTAG=0

IpDisc=

WMI_FLAG_MODE=COMPLETE

DEFAULT_USER_DOMAIN=

[HTTP]

Server=http://server_IP_Address/ocsinventory

SSL=0

CaBundle=cacert.pem

AuthRequired=0

User=

Pwd=

ProxyType=0

Proxy=

ProxyPort=0

ProxyAuthRequired=0

ProxyUser=

ProxyPwd=

[OCS Inventory Service]

TTO_WAIT=1020

INVENTORY_ON_STARTUP=0
in OCS Inventory NG agent for Windows by (120 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...