[HOWTO] Install Cacti on Fedora and CentOS using yum *FIXED*

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You should decide to either use /etc/cron.d/cacti OR /etc/crontab. In case of a yum install, I would choose the first solution
Reinhard
grega3
Posts: 5
Joined: Thu Feb 21, 2008 11:39 am

Post by grega3 »

Users will also have to go into System, Administration, Services and enable httpd (Apache) in order to see the website.
prasad.nitc
Posts: 2
Joined: Mon Oct 26, 2009 11:01 am

problem insatlaling cacti

Post by prasad.nitc »

sir
i installed cacti in my lap in fedora11.
i followed the instructions which are in
http://www.cacti.net/downloads/docs/htm ... _unix.html
site

but when i am browcing http://localhost@cacti

it showing an empty page . blank white page
please help me
if i am running file:///var/www/html/cacti

then itis showing the code in that page .

i tried by disable selinux also

if i hav any html /php page in /var/www/html
that file is running
but cacti is showing empty page
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

MySql is up and running? Cacti db is existing and filled?
R.
prasad.nitc
Posts: 2
Joined: Mon Oct 26, 2009 11:01 am

cacti

Post by prasad.nitc »

mysql is running

and cacti db also there

from localhost/cacti i am getting blank page
User avatar
RaduAlexandru
Posts: 43
Joined: Mon Mar 28, 2005 5:06 pm
Location: Bucharest, Romania
Contact:

Re: cacti

Post by RaduAlexandru »

prasad.nitc wrote:mysql is running

and cacti db also there

from localhost/cacti i am getting blank page
By "cacti db also there" you mean you created a blank database, or did you actually used the cacti.sql file to create the tables? Not using the script usually creates this problem (or it did for me, several times).


I got a little further in the matter: I get the first setup page. But, under no conditions can get past it (I clicked the "Next>>" button until my finger hurt).
I couldn't find anything in:
  1. /var/log/messages
  2. /var/log/httpd/error_log
  3. /var/log/audit/audit.log
Forgot to mention that I have SELinux on.


Anyone any ideeas?



Thanks in advance.
Palermo
Cacti User
Posts: 87
Joined: Thu Sep 11, 2008 11:48 pm

Post by Palermo »

Hi i have an question.
I installed cacti via yum install
the yum install way is easy and fast.

But witch an upgrade its a different ball game.

Situation
I want to upgrade cacti from version 0.8.7d to 0.8.7e
I have a server witch has no Internet connection. so an update for cacti is not an option.

So i do it manually... No problem there is a manual for it
http://www.cacti.net/downloads/docs/html/upgrade.html

But in the install directory of cacti "/usr/share/cacti" there are 3 directory's witch is not a Dir. but a hard link to a other Dir.

Code: Select all

lrwxrwxrwx  1 root  root     22 2009-06-10 10:57 scripts -> /var/lib/cacti/scripts
lrwxrwxrwx  1 root  root     18 2009-06-10 10:57 rra -> /var/lib/cacti/rra
lrwxrwxrwx  1 root  root     15 2009-06-10 10:57 log -> /var/log/cacti/
With the new installation of cacti (0.8.7e) comes an static Dir. off those 3.
How can i link t them to the other Dir. so that the RRA,log, and script Dir. stays unhamed and cacti can use the RRA s ?

i`f look t on Internet on hard links but the solutions there unfortunately it dit not apply for me...

I hope someone can help me. or has ran in the same problem.
Thx in advanced
Grt Palermo
teksolutions
Posts: 2
Joined: Wed Aug 11, 2010 10:24 am

Re: problem insatlaling cacti

Post by teksolutions »

I ran into the same problems, with a black white page. The documentation 'How To..' need to revise. it is very unclear.
prasad.nitc wrote:sir
i installed cacti in my lap in fedora11.
i followed the instructions which are in
http://www.cacti.net/downloads/docs/htm ... _unix.html
site

but when i am browcing http://localhost@cacti

it showing an empty page . blank white page
please help me
if i am running file:///var/www/html/cacti

then itis showing the code in that page .

i tried by disable selinux also

if i hav any html /php page in /var/www/html
that file is running
but cacti is showing empty page
teksolutions
Posts: 2
Joined: Wed Aug 11, 2010 10:24 am

Doesn't Work.

Post by teksolutions »

The documentation of the instruction "How To.." need to revise. doesn't work.
chris.y2k.r1 wrote:Everyone - If you use this documentation and find something omitted / misspelled command(s) / something incorrect, please let us know!!

P.S. - If it works well for you, let us know that too :D


Thanks!!
Chris
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I'm sorry, but I'm unable to correct those docs.
Please refer to 1st link of my sig for current documentation. I'm happy to accept hints to improve those.
But please be aware, that some distros change our file layout (e.g. by symlinking directories). WHile this will work in general, we are not able to provide documentation for those deviations as we simply don't know all of them
R.
goude
Posts: 13
Joined: Mon Jun 06, 2011 7:27 am

Re: [HOWTO] Install Cacti on Fedora and CentOS using yum *FI

Post by goude »

I am getting a blank page as well. :roll:

Has anyone figured this out?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: [HOWTO] Install Cacti on Fedora and CentOS using yum *FI

Post by phalek »

out of curiosity, does one of the modules show up:

Code: Select all

# php -m
[PHP Modules]
...
mysql
pdo_mysql
...
and does

Code: Select all

# rpm -qa | grep php-mysql
php-mysql-5.3.5-1.el5.remi.1
show something similiar ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
goude
Posts: 13
Joined: Mon Jun 06, 2011 7:27 am

Re: [HOWTO] Install Cacti on Fedora and CentOS using yum *FI

Post by goude »

I get some warnings.

php -m gives me the following:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/dbase.so' - /etc/php.d/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/gd.so' - /etc/php.d/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/ldap.so' - /etc/php.d/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/mbstring.so' - /etc/php.d/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/mysql.so' - /etc/php.d/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/mysqli.so' - /etc/php.d/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/pdo.so' - /etc/php.d/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_mysql.so' - /etc/php.d/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/pdo_sqlite.so' - /etc/php.d/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
[PHP Modules]
bz2
calendar
ctype
curl
date
exif
ftp
gettext
gmp
hash
iconv
libxml
mime_magic
openssl
pcntl
pcre
posix
pspell
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
zlib
rpm -qa | grep php-mysql outputs: php-mysql-5.1.6-27.el5_5.3

All these files is complaining about are in /usr/lib/php/modules/. I guess I have to move them to /etc/php. Right? :roll:
goude
Posts: 13
Joined: Mon Jun 06, 2011 7:27 am

Re: [HOWTO] Install Cacti on Fedora and CentOS using yum *FI

Post by goude »

Thanks a lot phalek. It worked.

Copied the files to /etc/php/d and all the warnings are gone.
After restarting httpd and smpd services I finally got the installation prompt.
:) :) :)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: [HOWTO] Install Cacti on Fedora and CentOS using yum *FI

Post by phalek »

The only thing is, that this directory is not the default dir where these files are suposed to be.

Seems like your php install/config got a bit screwed up...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests