I also faced the same problem, tried various solutions. I put the contents of the file ocsinventory.log and apache access.log. When I installed OCS Inventory Server, I have all items set default, and then just copied the directory "ocsreports" /var/www/html/ What did I do wrong?
ocsinventory.log
Starting OCS Inventory NG Agent on Tuesday, February 21, 2017 11:05:58.
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\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.3.0.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <WS-LENIN-05-2017-01-25-11-48-33> and MACs <00:0C:46:17:9E:EC00:1A:92:E3:58:CE0A:00:27:00:00:0F> 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://192.168.56.101/ocsreports>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
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.
ocsinventory.ini
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.56.101/ocsreports
SSL=0
CaBundle=cacert.pem
AuthRequired=1
User=0hmPM0ZfcGWRt+mCZo4YyA==|||7O5QfQJ3argZhjucOqMpkg==
Pwd=eXB29MiYhispe43BeNLbUg==|||Avnewye3Sf7IoBo95VqEtg==
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=840
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
apache access log
192.168.56.102 - - [21/Feb/2017:11:05:56 +0700] "POST /ocsreports HTTP/1.1" 301 535 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:05:56 +0700] "GET /ocsreports/ HTTP/1.1" 200 7046 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:09:33 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:09:46 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:10:08 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:12:40 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:13:20 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:22:58 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
404 errors - the result of failed experiments
ocsinventory.log
Starting OCS Inventory NG Agent on Tuesday, February 21, 2017 11:05:58.
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\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.3.0.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <WS-LENIN-05-2017-01-25-11-48-33> and MACs <00:0C:46:17:9E:EC00:1A:92:E3:58:CE0A:00:27:00:00:0F> 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://192.168.56.101/ocsreports>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
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.
ocsinventory.ini
[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=1
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://192.168.56.101/ocsreports
SSL=0
CaBundle=cacert.pem
AuthRequired=1
User=0hmPM0ZfcGWRt+mCZo4YyA==|||7O5QfQJ3argZhjucOqMpkg==
Pwd=eXB29MiYhispe43BeNLbUg==|||Avnewye3Sf7IoBo95VqEtg==
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=840
INVENTORY_ON_STARTUP=0
PROLOG_FREQ=10
OLD_PROLOG_FREQ=10
apache access log
192.168.56.102 - - [21/Feb/2017:11:05:56 +0700] "POST /ocsreports HTTP/1.1" 301 535 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:05:56 +0700] "GET /ocsreports/ HTTP/1.1" 200 7046 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:09:33 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:09:46 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:10:08 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:12:40 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:13:20 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
192.168.56.102 - - [21/Feb/2017:11:22:58 +0700] "POST /ocsinventory HTTP/1.1" 404 451 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
404 errors - the result of failed experiments