Can not open Cacti with http://my-server/cacti [Solved]
Moderators: Developers, Moderators
Can not open Cacti with http://my-server/cacti [Solved]
Hi ,
i am total new in this Forum and a total beginner in cacti and Linux.
I have installed cacti (0.8.7g) on a Rhel4 based server.
After i have done all steps for the installation, i wanted to open cacti in my webbrowser.
(http://server-ip/cacti)
I only get the message : connection failed
additional i am working from another computer workstation, with all root rights.
i am searching now for any ideas or solution to fix my problem.
thx a lot
i am total new in this Forum and a total beginner in cacti and Linux.
I have installed cacti (0.8.7g) on a Rhel4 based server.
After i have done all steps for the installation, i wanted to open cacti in my webbrowser.
(http://server-ip/cacti)
I only get the message : connection failed
additional i am working from another computer workstation, with all root rights.
i am searching now for any ideas or solution to fix my problem.
thx a lot
Last edited by stefanb89 on Fri May 06, 2011 4:37 am, edited 1 time in total.
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
u may read this for debugging
http://docs.cacti.net/manual:087:4_help ... #debugging
but if u get
u may check whit netstat -anp
and you my find one line like this
Good luck
http://docs.cacti.net/manual:087:4_help ... #debugging
but if u get
Check if your apache server it workingconnection failed
u may check whit netstat -anp
and you my find one line like this
Code: Select all
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1084/httpd
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
the apache server is working.
The documentaion did not helped much. Maybe someone had the same problem but did not found any topic like it.
I only need to get the cacti login window in the browser.
I am working from another pc and i am not able to open this window.
http://(serverip)/cacti doesnt work.
Is there any file which i need to edit for this?!
I am total lost at this point. Tips solutions or anything else can be very helpful.
Or can anyone say me in what step of the installation of cacti, this is making possible.
Using:
Rhel 4
packages(rpm)
-mysql-4.1.22-2.el4
-php-4.3.9-3.22.5
-php-mysql-4.3.9.3-22.5
-mysql-server-4.1.22-2.el4
-net-snmp-5.1.2-11
-httpd-2.0.52-32.ent
cacti: 0.8.7g
rrdtool:1.4.4
firefox:1.5.0.10-0.1.el4
The documentaion did not helped much. Maybe someone had the same problem but did not found any topic like it.
I only need to get the cacti login window in the browser.
I am working from another pc and i am not able to open this window.
http://(serverip)/cacti doesnt work.
Is there any file which i need to edit for this?!
I am total lost at this point. Tips solutions or anything else can be very helpful.
Or can anyone say me in what step of the installation of cacti, this is making possible.
Using:
Rhel 4
packages(rpm)
-mysql-4.1.22-2.el4
-php-4.3.9-3.22.5
-php-mysql-4.3.9.3-22.5
-mysql-server-4.1.22-2.el4
-net-snmp-5.1.2-11
-httpd-2.0.52-32.ent
cacti: 0.8.7g
rrdtool:1.4.4
firefox:1.5.0.10-0.1.el4
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
if you are able to access
http://(serverip)/
and see the default page
Usual it It Works
but not able to access http://(serverip)/cacti/
first u have to check if cacti directory it place right
in the apache working directory (u may find the path in httpd.conf)
In slackware it /var/www/htdocs , the directory for web pages
if it is, check if the user used by apache have rights to access this directory
or change the owner and group whit chown -R user@group
Hope this time if don't work to give me more info
http://(serverip)/
and see the default page
Usual it It Works
but not able to access http://(serverip)/cacti/
first u have to check if cacti directory it place right
in the apache working directory (u may find the path in httpd.conf)
In slackware it /var/www/htdocs , the directory for web pages
if it is, check if the user used by apache have rights to access this directory
or change the owner and group whit chown -R user@group
Hope this time if don't work to give me more info
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
i was looking for the directory in my apache conf , but did not find the lines where this is written , anyone has maybe an example how it should look?
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
look like this
DocumentRoot "/var/www/htdocs"
DocumentRoot "/var/www/htdocs"
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
at me it is:
document root: "/var/www/html"
there i have installed cacti
(var/www/html/cacti/cacti-0.8.7g)
and htdocs doesnt really exits not able to find it.
it would really be great if you could list the steps with some more notice if possible. Would be really great.
document root: "/var/www/html"
there i have installed cacti
(var/www/html/cacti/cacti-0.8.7g)
and htdocs doesnt really exits not able to find it.
it would really be great if you could list the steps with some more notice if possible. Would be really great.
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
you have two directory
u have to move the files from
/var/www/html/cacti/cacti-0.8.7g
to
/var/www/html/cacti/
now in the directory cacti you have index.php
also in your httpd.conf
you my define like this
<Directory "/var/www/html/cacti/">
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
or read the man to allow access from certain ip
(recommended it to allow also the localhost)
Good luck
u have to move the files from
/var/www/html/cacti/cacti-0.8.7g
to
/var/www/html/cacti/
now in the directory cacti you have index.php
also in your httpd.conf
you my define like this
<Directory "/var/www/html/cacti/">
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
or read the man to allow access from certain ip
(recommended it to allow also the localhost)
Good luck
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
how do i change from
/var/www/html/cacti/cacti-0.8.7g
to
/var/www/html/cacti
how i am said i am total new on linux (textmode)
greetz
/var/www/html/cacti/cacti-0.8.7g
to
/var/www/html/cacti
how i am said i am total new on linux (textmode)
greetz
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
whit mc for example
you have to move the files from .. to ,common
or you use mv , read the man
you have to move the files from .. to ,common
or you use mv , read the man
Code: Select all
man mv
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
ok , after the time i read a lot of info pages for apache and so on.
I checked all of that what u said and all fits to it and so on.
I get under http://server-ip the apache testpage , so apache is working without any problems, but
with http://server-ip/cacti the browser says error: connection failed (no error number)
my question is only what could i check to find the problem. Maybe the ip tables but did not find anything there , port 80 is open and so on.
if u need more infos just ask the specific and i will post it.
under the httpd error_logs i get the message:
Directory Index forbidden by rule: /var/www/html/
File does not exist: /var/www/html/facivon.ico
my question what is facivon needed for?
and how to fix or what could i have done wrong?
thx to all who answer and read this
I checked all of that what u said and all fits to it and so on.
I get under http://server-ip the apache testpage , so apache is working without any problems, but
with http://server-ip/cacti the browser says error: connection failed (no error number)
my question is only what could i check to find the problem. Maybe the ip tables but did not find anything there , port 80 is open and so on.
if u need more infos just ask the specific and i will post it.
under the httpd error_logs i get the message:
Directory Index forbidden by rule: /var/www/html/
File does not exist: /var/www/html/facivon.ico
my question what is facivon needed for?
and how to fix or what could i have done wrong?
thx to all who answer and read this
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
so , the missing facivon.ico it not a problem
check the follow settings
1) de cacti files they are under directory cacti
in /var/www/html/cacti/ and find there index.php
2) check the files have the owner and group used by apache server
hear you have 2 solution
first : go to directory cacti and runthis command change the owner and group of the files
second : the same go inside the directory and runthis command change the accessibility of files/directory and allow to be read/write/execute by anyone
then in httpd.conf
to put the directory cacti , something like this on end of httpd.conf:
check the follow settings
1) de cacti files they are under directory cacti
in /var/www/html/cacti/ and find there index.php
2) check the files have the owner and group used by apache server
hear you have 2 solution
first : go to directory cacti and run
Code: Select all
chown -R userapache:groupapache *
second : the same go inside the directory and run
Code: Select all
chmod -R a+rwx *
then in httpd.conf
to put the directory cacti , something like this on end of httpd.conf:
Code: Select all
<Directory "/var/www/htdocs/cacti/">
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
Hi so i changed with
Code:
chown -R userapache:groupapache * set it to: cactiuser:cacti
also i did
Code:
chmod -R a+rwx *
and in my httpd.config :
<Directory "/var/www/html/cacti/">
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
cause in /var/www/ htdocs does not exist.
but it does`t changed anything everything is like before.
and i did:
changed in httpd.conf
User cactiuser
Group cacti
and
Document root "/var/www/html/cacti"
NOW if i connect via browser to the server ip i become the message: http://server-ip
result in http://server-ip/install/
Error
You have created a new database, but not yet imported the cacti.sql file. At the command line, execute the following to cintinue.
mysql -u cactiuser -p cacti cacti < cacti.sql
This Error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability so SELECT, INSERT, DELETE, UPDATE , CREATE , ALTER, DROP, INDEX on the cacti database.
the first does not work in the normal shell, it asks for pass and then say that the cacti.sql already exist. what is correct .
Code:
chown -R userapache:groupapache * set it to: cactiuser:cacti
also i did
Code:
chmod -R a+rwx *
and in my httpd.config :
<Directory "/var/www/html/cacti/">
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
cause in /var/www/ htdocs does not exist.
but it does`t changed anything everything is like before.
and i did:
changed in httpd.conf
User cactiuser
Group cacti
and
Document root "/var/www/html/cacti"
NOW if i connect via browser to the server ip i become the message: http://server-ip
result in http://server-ip/install/
Error
You have created a new database, but not yet imported the cacti.sql file. At the command line, execute the following to cintinue.
mysql -u cactiuser -p cacti cacti < cacti.sql
This Error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability so SELECT, INSERT, DELETE, UPDATE , CREATE , ALTER, DROP, INDEX on the cacti database.
the first does not work in the normal shell, it asks for pass and then say that the cacti.sql already exist. what is correct .
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Re: Can not open Cacti with http://my-server/cacti
from what i see
u have this error
This Error may also be generated if the cacti database user does not have correct permissions on the cacti database
or the cactiuser it not created in mysql ,or don't have the right permission
read this from mysql manual
http://dev.mysql.com/doc/refman/5.1/en/ ... users.html
how to check ,create user and give permissions
hope this time to succeed
Good luck
also don't forget to configure cacti whit right settings for mysql,
in my case i configure mysql to work only whit socks
to not be accessible from outside the server,it configured to work only on localhost
u have this error
This Error may also be generated if the cacti database user does not have correct permissions on the cacti database
or the cactiuser it not created in mysql ,or don't have the right permission
read this from mysql manual
http://dev.mysql.com/doc/refman/5.1/en/ ... users.html
how to check ,create user and give permissions
hope this time to succeed
Good luck
also don't forget to configure cacti whit right settings for mysql,
in my case i configure mysql to work only whit socks
to not be accessible from outside the server,it configured to work only on localhost
Cacti - 0.8.7h
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
Plugin Architecture - 3.0
Poller Type - SPINE 0.8.7g
Server Info - Linux 2.6.35.10 - Slackware 13.1
Web Server - Apache/2.2.17 (Unix) DAV/2 PHP 5.3.5
MySQL - 5.1.53 ;RRDTool - 1.4.5 ;SNMP - 5.6.1
Plugins
- (tools - v0.3) (Thold - v0.4.6) (Ntop - v0.2) (Discovery - v1.2a) (Monitor - v1.2)
Re: Can not open Cacti with http://my-server/cacti
plz more detailed :
also don't forget to configure cacti whit right settings for mysql,
in my case i configure mysql to work only whit socks
to not be accessible from outside the server,it configured to work only on localhost
also don't forget to configure cacti whit right settings for mysql,
in my case i configure mysql to work only whit socks
to not be accessible from outside the server,it configured to work only on localhost
Cacti: 0.8.7g
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
PIA: 2.8
rrdtool: 1.2.x
Plugins: Realtime, RRDcleaner
Who is online
Users browsing this forum: No registered users and 0 guests