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.

agent does not sent inventory

Good morning,

on my Win10-computers It's not possible to sent the inventory to the server after a new installation of ocsserver.

I use the latest ocsinventory server version 2.6 on Ubuntu 19.04. All clients have the number 2.4.

Server configuration:

In /var/www/html there's a symbolic link to /usr/share/ocsinventory-reports/ocsreports named ocsinventory. The servers name is inventar (/etc/hostname)

Client configuration (ocsinventory.ini):

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://inventar/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=9180

I can ping the server with its dns name and its IP. Also the clients can be pinged from server. If I call the website in browser everything's fine.

However, the logifile says status code 404 or couldn't solve dns name. In my memory I thought that there's a cache which is to clear. Perhaps ocsinventory gets its information from cache?

Kind regards

in OCS Inventory NG agent for Windows by (1k points)

7 Answers

0 votes

Hey,

now as I changed the DocumentRoot directive from /var/www/html to /var/www/html/ocsinventory the agent sent the prolog successfully. But the inventory doesn't work yet.

by (1k points)
0 votes

Nobody here who can help?

how I wrote the communication with the server runs successful. But there's no change in inventory.

This is my agent configuration:

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://inventar
SSL=1
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

And this is the result of OCSInventory.log:
 

==============================================================================
Starting OCS Inventory NG Agent on Monday, September 16, 2019 14:54:28.
AGENT => Running OCS Inventory NG Agent Version 2.4.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.4.0.0
AGENT => Loading plug-in(s)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.4.0.0>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.
 

As you can see the prolog was sent successfully. But then the communication broke up (I'm not sure if "Unloading communication provider" is an error).

Has anyone the same problem and solved it?

by (1k points)
0 votes
under Debian or ubuntu, you must enable ocsinventory-server.conf and ocsinventory-reports.conf in the apache configuration.

There is nothing to do in /var/www to made ocs working.
by (21.1k points)
0 votes

under Debian or ubuntu, you must enable ocsinventory-server.conf and ocsinventory-reports.conf in the apache configuration.

I enabled the ocsinventory-server.conf and the ocsinventory-reports.conf with a2enconf ocsinventory-server; a2enconf ocsinventory-reports. After enabling the first one the server wasn't available anymore. So I disabled it again (a2disconf ocsinventory-server.conf) and the server is reachable again. But still the inventory isn't possible.

Are there more configs to enable?

by (1k points)
0 votes
Does REALLY NO ONE has an idea what the solution could be? I don't unserstand why enabling both configuration files does not work. It must be another thing.
by (1k points)
0 votes
So, I found out that the Switch module from perl was missing. After installing it I activatet the 3 config files ocsinventory-reports.conf, z-ocsinventory-server.conf and zz-ocsinventory-restapi.conf (not sure if I need this file). The inventory doesn't seems to work. It has to be another error.
by (1k points)
0 votes

Try with 2.6 agent

https://github.com/OCSInventory-NG/WindowsAgent/releases

I've had similiar problems but all clients now work when I use version 2.6 agent. I also had to delete folder C:\ProgramData\OCS Inventory NG before installing new version, if I forgot to delete that folder the inventory did not work and there were no error on debug log. Not sure if your's is same issue but give it a try..

ago by (240 points)
 
Powered by Question2Answer
...