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.

404 Not Found Error

I had installed OCS Server and I am able to login into my http://localhost/ocsreports also but when I run ocsinventory-agent I receive the below error message.

sudo ocsinventory-agent
[error] Cannot establish communication : 404 Not Found

in OCS Inventory NG agent for Unix by (180 points)

3 Answers

0 votes
 
Best answer
Hi

Which version of OCS agent and server?

Have you restarted apache after ocs inventory server installation? It seems that the url http://@ip_or_fqdn/ocsinventory is not available.

Regards

Frank
by (90.4k points)
selected by
Yes!

You were correct.

But I can able to login in

http://localhost/ocsreports
0 votes
Hi,

Post content of /etc/ocsinventory-agent/ocsinventory-agent.conf file.

Verify that mod_perl apache module is installed and enabled.

Regards

Frank
by (90.4k points)

Hi, Thanks for replying..

There on directory like this

/etc/ocsinventory-agent/ocsinventory-agent.conf

But I have ocsinventory-agent.cfg file in below directory in that file i have only one line

server=192.168.1.10  (My OCSINVENTORY SERVER IP)

File: /etc/ocsinventory/ocsinventory-agent.cfg.

One more thing I would like to know how I installed.

this is the steps i followed for installation

1. apt-get install apache2
2. apt-get install php5
3. apt-get install mysql-server phpmyadmin (Web Server
APACHE2)
4. apt-get install ocsinventory-server ocsinventory-reports
5. apt-get install ocsinventory-agent (Choose -> http, Host
Name)
6. Finally run ocsinventory-agent

For admin login - http://hostname/ocsreports

Youtube Link
https://www.youtube.com/watch?v=tdMR4BdzgPI  

Once againe Thanks for kind...

Loving you great JOB!! :)

Hi Frank,

Is there any update on the above request.!!
0 votes
Hi

Your config file is not correct. You should have server=http://192.168.1.10/ocsinventory

Regards

Frank
by (90.4k points)
 
Powered by Question2Answer
...