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.

OCS agent ne remonte rien sur le serveur OCS

Bonjour à tous,

information sur mon environnement :

j'ai un serveur xubuntu (4.15.0-43-generic) sur lequel j'ai installé la dernière version de OCS inventory (version 2.2 ? sans certitude car je ne trouve pas la commande me permettant de faire afficher clairement  ma version d'OCS inventory. Je sais juste que si je lance un apt-get install ocsinventory-server, il me dit que la version est la plus récente (2.2++dfsg-0.1))

Logiciel Version de PHP :5.6.36-1+ubuntu17.10.1+deb.sury.org+1 (apache2handler)

Serveur Web : Apache/2.4.29 (Ubuntu)

Serveur SQL : (Ubuntu) version 5.7.25-0ubuntu0.18.04.2

Je lance un OCS agent 2.4.0.0 sur un PC windows. L'inventaire ne remonte pas sur le serveur OCS.

contenu du ocsinventory.ini :

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.1.52/ocsinventory
SSL=1
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=0
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10

contenu du  OCSinventory log :

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 11, 2019 09:29:41.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
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) successfully 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.4.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <DESKTOP-COSS3QV-2019-01-18-15-38-06> and MACs <4C:ED:FB:3D:FE:F7> 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://192.168.1.52/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.

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 11, 2019 09:30:30.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
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) successfully 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.4.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <DESKTOP-COSS3QV-2019-01-18-15-38-06> and MACs <4C:ED:FB:3D:FE:F7> 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://192.168.1.52/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.

je vois bien qu'il y a un Failed to send Prolog <HTTP Status Code #500> mais je ne sais pas comment le résoudre.
A votre disposition si besoin de plus d'info.
D'avance merci pour votre aide.
Cordialement,
asked in OCS Inventory NG agent for Windows by (120 points)

1 Answer

0 votes

Bonjour,

  1. La version 2.2 n'est plus supportée.
  2. L'agent 2.4.0 ne peut pas fonctionner avec cette version d'OCS serveur. Il faut au minimum la version 2.5
  3. Installer la version 2.5 (stable) depuis le dépôt OCS https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/tag/2.5
Cordialement
Frank
answered by (69.9k points)
 
Powered by Question2Answer
...