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.

Agent (version 2.0.5) don't stablish communication with server (version 2.0.5)

Hi All, i'm with dificulty with this and i'm certanlly that somebody in some moment too.

I have an OCS server 2.0.5 in ubuntu server. Apache and Mysql working with no problem. I can browser access OCS and login normally. I'm using Zabbix too in the same server (ubuntu).

I have been install OCS agent in a Windows 7 workstation 64 bits but the communication with the server isn't work. I google it and verify that in some situations i have to use agent with the same server version or previous. About mod_perl seems looks well.

I need help urgently because i have to inventory too much machines in a short time.

my ocsinventory.ini:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://ipservidor/ocsinventory
SSL=1
CaBundle=C:\Users\thiago.costa\Downloads\OCS\cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=29100

agent log:

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, December 16, 2015 11:48:01.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.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) 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.0.5.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 => Enabling cURL SSL server validation support using CA Bundle <C:\Users\thiago.costa\Downloads\OCS\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://ipdoservidor/ocsinventory/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 <W7RJO030-2015-12-14-16-58-57> and MACs <F0:4D:A2:E2:A2:9300:00:00:11:02:0000:50:56:C0:00:0100:50:56:C0:00:08> 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:\Users\thiago.costa\Downloads\OCS\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://ipdoservidor/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #404>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #404>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

My apologies about my english.
in OCS Inventory NG agent for Windows by (120 points)
edited by

1 Answer

0 votes
Hi,

Be sure that mod_perl module is activated on the apache server, if not please restart apache. To verify that mod_perl is active, go to http://ipservidor/ocsinventory with a browser, then you'll have an error 400.

Regards

Frank
by (90.4k points)
Frank, at first, thanks for tour advice. When i try to access http://ipserver/ocsinventory return 404 error.
i verified in apache error log one message informing thar the mod_perl is active:

AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 mod_perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations

But the 404 error still happen.
 
Powered by Question2Answer
...