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.

Client is not communicating to server.

==============================================================================
Starting OCS Inventory NG Agent on Sunday, February 26, 2017 20:39:05.
AGENT => Running OCS Inventory NG Agent Version 2.1.0.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.0.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.0.1>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <ML43-2017-02-16-12-54-07> and MACs <48:51:B7:49:5F:AC0A:00:27:00:00:0E68:F7:28:32:A3:3C48:51:B7:49:5F:B048:51:B7:49:5F:AD> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.0.156/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
in OCS Inventory NG agent for Windows by (160 points)

3 Answers

0 votes
Hello,

Can you show me your agent conf file .ini ? I think you have SSL=1, put it at 0
by (4.9k points)
0 votes
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.46.177/ocsinventory
;SSL=1
;SSL=0
;CaBundle=cacert.pem
;AuthRequired=1
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
SSL=0
CaBundle=cacert.pem
AuthRequired=1
User=ERBiMMqfF1akwlAafQVcnQ==|||Z3X58wYyZDLbsCK2vZiPVg==
Pwd=xfktj6qw033fV0ZRQ8lo7Q==|||QJKly3TbYLs5pjvzJDeU7g==
[OCS Inventory Service]
TTO_WAIT=0
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
by (160 points)
edited by
0 votes

Check z-ocsinventory-server.conf, it is at /etc/httpd/conf.d/z-ocsinventory-server.conf on CentOS :

  # Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER DATABASE_USER (maybe root ?)
  # Password for user
  PerlSetVar OCS_DB_PWD DATABASE_PASSWORD 

Restart apache server

by (4.9k points)
 
Powered by Question2Answer
...