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