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.

Windows Agent data not inventoried - Logs OK [closed]

Hi!

I've installed OCS server on Ubuntu. Web Interface is running fine, no entries in apache error.log. I have one agent installed on windows. When I trigger the agent to send the data to the server, this is what I get in apaches access.log:

10.110.100.177 - - [22/Feb/2017:15:14:21 +0100] "GET /ocsinventory/deploy/label HTTP/1.1" 400 484 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
10.110.100.177 - - [22/Feb/2017:15:14:22 +0100] "POST /ocsinventory HTTP/1.1" 301 531 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
10.110.100.177 - - [22/Feb/2017:15:14:22 +0100] "GET /ocsinventory/ HTTP/1.1" 400 484 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

An here is the ocsinventory.log from the windows machine:

==============================================================================
Starting OCS Inventory NG Agent on Wednesday, February 22, 2017 15:20:03.
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 with server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Disabling cURL SSL server validation support
    COM SERVER => Sending fileGet request to URL <http://[IP]/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #400>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <COMPUTERNAME-2017-02-16-12-52-22> and MACs <[MAC]> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL with 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://[IP]/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
================= TRACE START ===============

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

Both server and agent are Version 2.3. I do not see any data within OCS web interface...

Any help would be appreciated.

Thanks!

closed with the note: Solved
in OCS Inventory NG server for Unix by (530 points)
closed by

14 Answers

0 votes
So I removed both User and Pwd and set SSL and AuthRequired to 0.

Still the same problem. Access.log shows the three lines:

10.110.100.177 - - [23/Feb/2017:13:31:17 +0100] "GET /ocsinventory/deploy/label HTTP/1.1" 400 484 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
10.110.100.177 - - [23/Feb/2017:13:31:18 +0100] "POST /ocsinventory HTTP/1.1" 301 531 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
10.110.100.177 - - [23/Feb/2017:13:31:18 +0100] "GET /ocsinventory/ HTTP/1.1" 400 484 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

error.log gets no new entries. Agent log still looks the same.
by (530 points)
0 votes
I now have an activity.log in /var/log/ocsinventory-server

Here's the contents: http://pastebin.com/6hKLYLdn

Lot's of bad_request and no_file
by (530 points)
0 votes
Amazing!! Thank you!

Yes, I had some trouble trying to install from a pre-made Ubuntu package before, but I aborted that installation and tried to roll it back.

I had an alias in /etc/apache2/sites-available/000-default.conf:

Alias /ocsinventory "/usr/share/ocsinventory-reports/ocsreports/"
   <Directory "/usr/share/ocsinventory-reports/ocsreports/">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>

After removing those lines, it now seems to work!! Thank you!
by (530 points)
0 votes
Nice ! Glad that it works ;)
by (4.9k points)
 
Powered by Question2Answer
...