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.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Windows agent not working

Hi all, I have installed ocsinventory server for a few days, but I am having difficulties with my windows agent.

I tried to install it on several PCs, but on all I have the same problem. The agent does not send data to the server.

Below is the ocsinventory.ini file:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=2
Local=
NoSoftware=0
HKCU=0
NoTAG=1
IpDisc=
WMI_FLAG_MODE=COMPLETE
DEFAULT_USER_DOMAIN=
[HTTP]
Server=http://172.17.23.120/ocsinventory
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=36000

Below is the OCSInventory.log file

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

Starting OCS Inventory Agent on Tuesday, April 04, 2023 15:45:42.
AGENT => Running OCS Inventory Agent Version 2.10.1.0
AGENT => Using OCS Inventory FrameWork Version 2.10.1.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 cURL Communication Provider> Version <2.10.1.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <PC-VALERIO-2023-03-29-15-02-08> and MACs <94:C6:91:2D:1F:B1> 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.17.23.120/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============

================= TRACE STOP ===============
AGENT => Prolog successfully sent
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.

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

4 Answers

0 votes

Sending HTTP Post request to URL <http://172.17.23.120/ocsinventory>
HTTP Post response received <HTTP Status Code #200>

That seems OK : 200 is not 500 or 400 !

You looked the client log, but you need also look on server : apache log + request POST /ocsinventory; plus specific log file 'activity.log' ...

by (19.2k points)
0 votes

/var/log/apache2/access.log:

172.16.138.169 - - [05/Apr/2023:03:25:01 +0200] "POST /ocsinventory/ HTTP/1.1" 200 37975 "-" "OCS-NG_WINDOWS_AGENT_v2.10.1.0"
172.16.138.169 - - [05/Apr/2023:13:31:38 +0200] "POST /ocsinventory/ HTTP/1.1" 200 37975 "-" "OCS-NG_WINDOWS_AGENT_v2.10.1.0"
172.16.21.86 - - [05/Apr/2023:15:36:47 +0200] "POST /ocsinventory HTTP/1.1" 200 37975 "-" "OCS-NG_WINDOWS_AGENT_v2.10.1.0"
172.16.21.86 - - [05/Apr/2023:15:37:21 +0200] "POST /ocsinventory HTTP/1.1" 200 37975 "-" "OCS-NG_WINDOWS_AGENT_v2.10.1.0"
172.16.21.86 - - [05/Apr/2023:15:37:53 +0200] "POST /ocsinventory HTTP/1.1" 200 37975 "-" "OCS-NG_WINDOWS_AGENT_v2.10.1.0"

/var/log/apache2/error.log:

EMPTY

Where can i find the other log files?

by (240 points)
0 votes
It's not my job to search for you ...

The file 'activity.log' is usualy in /var/log/ocsinventory-server/
by (19.2k points)
0 votes

There are no files in /var/log/ocsinventory-server/ folder but, but in the z-ocsinventory-server.conf file the configuration is correct:

PerlSetEnv OCS_OPT_LOGPATH "/var/log/ocsinventory-server"

by (240 points)
 
Powered by Question2Answer
...