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.

Windows Agent Unable to send Inventory to NG Linux Server

Following error receiving in OCS inventory log in Windows Agent. Agent unable to send inventory to Linux NG Server

NG Server OS: Ubuntu 16

NG Server version = 2.2.1

Client OS: Windows7

Windows Agent Version: 2.2.0

PHP Version: 7.0

PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )

Error:

=========================================================================

==============================================================================
Starting OCS Inventory NG Agent on Thursday, November 03, 2016 01:31:45.
AGENT => Running OCS Inventory NG Agent Version 2.2.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.2.0.0
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\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\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.3>
    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 <http://172.25.96.56/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 <WIN7-CLIENT-2016-11-01-23-38-12> and MACs <00:0C:29:78:EA:9F> 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 <http://172.25.96.56/ocsinventory>
    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 => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.


=====================================================================

Please Help me out

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

1 Answer

0 votes

I have resolved this issue by my own

Configure following Symbolic Links and Configuration

Step1:

vi /etc/apache2/conf-available/ocsinventory-reports.conf 

add Alias as below:

Alias /ocsreports  /usr/share/ocsinventory-reports/ocsreports

cd /etc/apache2/sites-enable

ln -s ../conf-available/z-ocsinventory-server.conf  ocsinventory.conf

ln -s ../conf-available/ocsinventory-reports.conf ocsreports.conf

service apache2 restart

Now It worked laughyes

by (260 points)
 
Powered by Question2Answer
...