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.

OCS Inventory Agent not Synchronizing with Server

Hi Guys,

I've extensively read all articles and questions on this topic but i'm not making head way. The OCS Windows agent is not synchronizing to my Windows Server 2012.

Please see my log below:

==============================================================================
Starting OCS Inventory NG Agent on Friday, April 28, 2017 22:18:11.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.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.3.0.0>
    AGENT => Sending getLabel request
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <https://X.X.X.X/ocsreports/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #404>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <XXXX-2017-04-28-22-00-49> and MACs <XXXX> 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 <https://X.X.X.X/ocsreports>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 10 hour(s)
    AGENT => Inventory on startup option set to  
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

The ocsinventory.ini is as seen below:

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

Please help anyone...pleaseeee !!
related to an answer for: log file fo the agent?
in OCS Inventory NG agent for Windows by (280 points)

7 Answers

0 votes
How are you deploying the agent (deployment tool,active directory,etc.,)?
by (1.4k points)
0 votes

Hi James,

Thank you very much for the response.

It was downloaded as "OCS-NG-Windows-Agent-Setup.exe" and installed on a windows Computer.

I am using OCSNG-Windows-Agent-2.3

Vous pouvez me contacter en français si vous le souhaitez

by (280 points)
0 votes

Bonjour,

https://x.x.x.x/ocsreports ce n'est pas bon. Cette URL permet d'accéder à l'interface graphique d'OCS. 

Il faut mettre http://x.x.x.x/ocsinventory pour envoyer l'inventaire de la machine au serveur. Dans un premier temps je te conseille de ne pas mettre le mode ssl et donc de rester en http. Sut ton serveur windows 2012 où est installé OCS server tu as bien installé mod_perl pour apache car sans ce module OCS server ne peut pas fonctionner. Tu auras l'erreur 404.

Cordialement

Frank

by (90.2k points)
0 votes
Bonjour Frank, merci beaucoup pour la réponse rapide. 
Si j'utilise http://x.x.x.x/ocsreports le serveur sera inaccessible. 
Est-ce que j'ai besoin d'un certificat SSL? 
J'attends avec impatience votre décision. Merci une fois de plus
Image1 (http): http://imgur.com/a/7lzDb 
Image2 (https): http://imgur.com/a/UpfuA
by (280 points)
0 votes

Bonjour,

Dans un premier temps le certificat n'est pas nécessaire. Vérifies que sur ton serveur windows 2012 où est installé OCS server tu as bien installé mod_perl pour apache car sans ce module OCS server ne peut pas fonctionner.

Cordialement

Frank

by (90.2k points)
0 votes
Merci Frank. Je veux également vous dire que le serveur Windows n'est pas sur mon réseau local. Je suis en train d'accéder au serveur via Internet via l'adresse IP publique.

L'inventaire de OSC peut-il fonctionner si je ne suis pas sur le même réseau local?
by (280 points)
0 votes

Je veux également dire que Perlmodule est installé sur le serveur

by (280 points)
 
Powered by Question2Answer
...