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.6 available

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

ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>

Hello,

I have the GLPI server and OCS Inventory Server in same host (Linux server), but some client agent cannot connect to OCS server with the Error #500

The agent has installed on Windows 7 and Windows 10 with same settings, but some agent can connect and some agent cannot.

I was checked the  z-ocsinventory-server.conf, and the MYSQL user name and password are correct.

Please help me ? Thank you very much !

The error of agent are as below:

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, November 09, 2016 12:48:45.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.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.1.1>
AGENT => Sending Prolog
 DID_CHECK => Read DeviceID <xxxxxxxxxx> and MACs <xxxxxxxxx> 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 => 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://xxxxxxxxxx>
 COM SERVER => HTTP Post response received <HTTP Status Code #500>
 COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
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.

Server "z-ocsinventory-server.conf" are as below:

  # 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 ocs
  # Password for user
  PerlSetVar OCS_DB_PWD ocs

Server apache erro log:

[Wed Nov 09 16:12:05 2016] [error] [client X.X.X.X] Not a HASH reference at /usr/local/share/perl5/Apache/Ocsinventory/Server/Capacities/Ipdiscover.pm line 62.\n

in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes
Hello

How much rows in your software table ?
by (140 points)
 
Powered by Question2Answer
...