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.

ocs server doesn't collect any PC's

Hi,

I've installed ocs server 2.6 on Linux Debian 10 with PHP 7.3.14 Apche2 2.4.38  but don't see any pc's from my network, what kind of problem could Ihave?

My pc's ave installed agent 2.6
in OCS Inventory NG server for Unix by (870 points)

13 Answers

0 votes
Hi

On server : have you got errors in apache error log file? See /var/log/apache2On /error.log.

On client: what is the error in ocsinventory.log file (windows) or ocsinventory-agent.log file (linux/unix)?

Regards

Frank
by (90.4k points)
0 votes
PHP Warning:  Use of undefined constant key - assumed 'key' (this will throw an Error in a future version of PHP) in /usr/share/ocsinventory-reports/ocsreports/require/function_config_generale.php on line 137, referer: http://10.xxx.xxx.xxx./ocsreports/index.php?function=admin_upload

from server

No error from client windows 10
by (870 points)
edited by
0 votes

I think the server url is false. Correct url to send inventories is http[s]://fqdn_or_ip:port/ocsinventory and not http[s]://fqdn_or_ip:port/ocsreports.

Regards

Frank

by (90.4k points)
0 votes

I don't understand. 

http://10.xxx.xxx.xxx./ocsreports/index.php?function=admin_upload is the folder of site OCS and it's create from installation, why i must change it?

by (870 points)
0 votes
There is one url to access web interface : http[s]://fqdn_or_ip:port/ocsreports. This is the administrative console.

There is one url for inventories : http[s]://fqdn_or_ip:port/ocsinventory. At this url you can't do anything. If you try to access it you'll have an error 400.

So change url and relaunch inventories.

Regards

Frank
by (90.4k points)
0 votes
I've tried to see any files reported but I don't see any url , could you have some suggestion?
by (870 points)
0 votes

Clients are windows and/or linux?

Windows => stop ocs service, edit c:\programdata\ocs inventory ng\agent\ocsinventory.ini file. Change the variable server= to http[s]://fqdn_or_ip/ocsinventory. Save. Restart ocs service

Linux => ocs agent installed with apt, edit /etc/ocsinventory/ocsinventory-agent.cfg file. Installed manually, edit /etc/ocsinventory-agent/ocsinventory-agent.cfg file. In both cases change "server=" to http[s]://fqdn_or_ip/ocsinventory. Save and launch an inventory.

Regards

Frank

by (90.4k points)
0 votes
clients are windows.

I follow your insttuctions , but no pc are shown in admin console.

Now in ocsinventory.log I have an error after sending prolog:

ERROR *** AGENT => Failed to send Prolog(HTTP Status code #404)
by (870 points)
edited by
0 votes
Is mod_perl installed and enabled on your server ?
by (90.4k points)
0 votes
Yes I've installed all requested.

Strange with path previous no error where in agent log
by (870 points)
 
Powered by Question2Answer
...