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.

I can't send data from ocs agent.

Hello,

I installed ocs server 2.6.0 on ubuntu. Install the agent for testing on the server itself and succeed. I install ocs agent on machines like Windows 10/2012/2016, but every time the following logs are coming.

I cannot see "OCS-NG_WINDOWS_AGENT_v2.6.0.0" as user-agent in apache access.log.

I would be very glad if you could support.

==============================================================================
Starting OCS Inventory NG Agent on Monday, February 24, 2020 15:05:46.
AGENT => Running OCS Inventory NG Agent Version 2.6.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.6.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.6.0.0>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <MRKBTM06-2018-09-22-10-58-34> and MACs <0A:00:27:00:00:02DC:4A:3E:4A:06:91> 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://10.5.8.47/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
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.

--------------
Apache access.log
--------------
10.6.35.35 - - [24/Feb/2020:14:55:31 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.35.35 - - [24/Feb/2020:14:55:42 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.35.35 - - [24/Feb/2020:14:55:45 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.35.35 - - [24/Feb/2020:14:55:48 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.6.15 - - [24/Feb/2020:15:05:34 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.6.6 - - [24/Feb/2020:15:06:02 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.6.6 - - [24/Feb/2020:15:06:03 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
-------------

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

2 Answers

0 votes

Additional information
I see it as a mozilla in the user-agent information of some clients after I make a mass distribution

Apache access.log

10.5.8.54 - - [26/Feb/2020:13:50:36 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.110 - - [26/Feb/2020:13:52:07 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.61 - - [26/Feb/2020:13:52:19 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.30.4.36 - - [26/Feb/2020:13:52:19 +0300] "POST /ocsinventory HTTP/1.1" 200 410 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.12.228 - - [26/Feb/2020:13:52:23 +0300] "POST /ocsinventory HTTP/1.1" 200 412 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.12.228 - - [26/Feb/2020:13:52:34 +0300] "POST /ocsinventory HTTP/1.1" 200 289 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.30.4.36 - - [26/Feb/2020:13:52:52 +0300] "POST /ocsinventory HTTP/1.1" 200 289 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.8.93 - - [26/Feb/2020:13:54:29 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.46 - - [26/Feb/2020:13:55:59 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.32 - - [26/Feb/2020:13:56:52 +0300] "POST /ocsinventory HTTP/1.1" 200 289 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.0.26 - - [26/Feb/2020:13:57:01 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.43 - - [26/Feb/2020:13:57:51 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.40.16.11 - - [26/Feb/2020:13:58:08 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.15 - - [26/Feb/2020:13:58:22 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.20.0.12 - - [26/Feb/2020:13:58:24 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.6.6.15 - - [26/Feb/2020:13:59:51 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.5.8.225 - - [26/Feb/2020:13:59:55 +0300] "POST /ocsinventory HTTP/1.1" 200 409 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.8.225 - - [26/Feb/2020:14:00:11 +0300] "POST /ocsinventory HTTP/1.1" 200 289 "-" "OCS-NG_WINDOWS_AGENT_v2.6.0.0"
10.5.8.196 - - [26/Feb/2020:14:00:22 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
10.30.0.90 - - [26/Feb/2020:14:00:29 +0300] "POST /ocsinventory HTTP/1.1" 400 483 "-" "Mozilla/4.0 (compatible; MSIE"
 

by (160 points)
0 votes

"DID_CHECK => Read DeviceID <MRKBTM06-2018-09-22-10-58-34> and MACs <0A:00:27:00:00:02DC:4A:3E:4A:06:91> in file <ocsinventory.dat>" 

Old installation? Maybe try new one?
If you use the certificate in the agent configuration - maybe it's after the deadline?

What is in agent ocsinventory.ini? You have problem with all agents?

If agent on the same sarver works it looks like problem with communication.

From workstation can you open website http://10.5.8.47/ocsreports/ ?

Check again user, password and database name in:
 
/etc/apache2/conf-enabled/z-ocsinventory-server.conf 
/etc/apache2/sites-enabled/zz-ocsinventory-restapi.conf
/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php 
But 
the files may depending on what you provided during installation.

by (810 points)
 
Powered by Question2Answer
...