installing cacti on centos 5.3

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

installing cacti on centos 5.3

Post by owens »

Hi,

Can someone help me install cacti on my web server. I followed the instructions on the manual about downloading the files and setting up the mysql login etc.

Could anyone help me over msn?

Thanks
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Re: installing cacti on centos 5.3

Post by trungtano »

owens wrote:Hi,

Can someone help me install cacti on my web server. I followed the instructions on the manual about downloading the files and setting up the mysql login etc.

Could anyone help me over msn?

Thanks
Hi, you can follow this link to install new cacti on CentOS

http://blogs.kranich.org/karl/2006/09/1 ... -with-yum/

Good luck!
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

So do this in 'root' or do it in my web hosting account with root privileges?
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

This is what happeneds when I try to install yum
root@thor [~]# yum install cacti
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* extras: mirror.liteserver.nl
* updates: ftp.nluug.nl
* base: mirror.sov.uk.goscomb.net
* addons: mirror.sov.uk.goscomb.net
dag | 1.1 kB 00:00
extras | 1.1 kB 00:00
updates | 951 B 00:00
base | 2.1 kB 00:00
addons | 951 B 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package cacti.noarch 0:0.8.7e-1.el5.rf set to be updated
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: webserver for package: cacti
--> Processing Dependency: rrdtool for package: cacti
--> Processing Dependency: php for package: cacti
--> Processing Dependency: php-mysql for package: cacti
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: xorg-x11-fonts-Type1 for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
---> Package cacti.noarch 0:0.8.7e-1.el5.rf set to be updated
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: webserver for package: cacti
--> Processing Dependency: php for package: cacti
--> Processing Dependency: php-mysql for package: cacti
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
---> Package xorg-x11-fonts-Type1.noarch 0:7.1-2.1.el5 set to be updated
---> Package cacti.noarch 0:0.8.7e-1.el5.rf set to be updated
--> Processing Dependency: php-snmp for package: cacti
--> Processing Dependency: webserver for package: cacti
--> Processing Dependency: php for package: cacti
--> Processing Dependency: php-mysql for package: cacti
--> Finished Dependency Resolution
cacti-0.8.7e-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php-snmp is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
cacti-0.8.7e-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php-mysql is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
rrdtool-1.3.8-2.el5.rf.i386 from dag has depsolving problems
--> Missing Dependency: perl(RRDp) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
rrdtool-1.3.8-2.el5.rf.i386 from dag has depsolving problems
--> Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
cacti-0.8.7e-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: webserver is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
rrdtool-1.3.8-2.el5.rf.i386 from dag has depsolving problems
--> Missing Dependency: perl(RRDs) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
cacti-0.8.7e-1.el5.rf.noarch from dag has depsolving problems
--> Missing Dependency: php is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: perl(RRDp) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: webserver is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: php-mysql is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php-snmp is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: perl(RRDs) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Do this first!

Post by trungtano »

Do you edit this file?

Configure yum. Since I want to use yum as much as possible, and cacti is not in the default CentOS repositories, I added Dag to my list of repositories. This is as simple as creating the file /etc/yum.repos.d/Dag.repo and putting the following in it:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
protect=0

First time, you must

yum update

install gcc gcc-c++ kernel kernel-devel net-snmp net-snmp-utils mysql mysql-server httpd php php-mysql php-snmp rrdtool tcl clamav libtool

When you install cacti or other require (net-snmp, mysql, v.v...) you must login to root of you CentOs
Last edited by trungtano on Tue Oct 27, 2009 3:40 am, edited 1 time in total.
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

Hi,

Was logged into root, also created that file.

After running the yum command, look above for the outcome.

Any ideas?
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Post by trungtano »

First time, you must

yum update

install gcc gcc-c++ kernel kernel-devel net-snmp net-snmp-utils mysql mysql-server httpd php php-mysql php-snmp rrdtool tcl clamav libtool

before install cacti!
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

cPanel was installed last month, I wont mess anything up running yum update command?

Also MySQL is already installed, same with httpd, php, clamav

not sure about php-mysql, php-snmp, libtool

Doesnt mention anything about these programs needing to be installed..
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

I guess the only add-ons I need are

the following messing ones?
Error: Missing Dependency: perl(RRDp) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: webserver is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: php-mysql is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php-snmp is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: perl(RRDs) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Post by trungtano »

try to install rrdtool by manual:

yum -y install rrdtool
yum -y install rrdtool-devel

and php, php-snmp must have to install cacti
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

after trying to install rrdtools manualy I got this at the bottom
Error: Missing Dependency: perl(RRDp) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: webserver is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: php-mysql is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php-snmp is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Error: Missing Dependency: perl(RRDs) is needed by package rrdtool-1.3.8-2.el5.rf.i386 (dag)
Error: Missing Dependency: php is needed by package cacti-0.8.7e-1.el5.rf.noarch (dag)
Do you have msn at all?
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Post by trungtano »

try this packet

yum -y install rrdtool-perl
yum -y install rrdtool-ruby
owens
Posts: 10
Joined: Tue Oct 27, 2009 2:47 am

Post by owens »

for the -perl
root@thor [~]# yum -y install rrdtools-perl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* extras: mirror.liteserver.nl
* updates: ftp.nluug.nl
* base: mirror.sov.uk.goscomb.net
* addons: mirror.sov.uk.goscomb.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
No package rrdtools-perl available.
Nothing to do
Similar for -ruby (says about no package for rrdtools-ruby available)
StealthCubz
Posts: 2
Joined: Tue Oct 27, 2009 4:12 am
Location: JHB ZA

Post by StealthCubz »

Heya

I installed Cacti on my CentOS Box about 2 days ago using the RPMFORGE http://wiki.centos.org/AdditionalResour ... s/RPMForge Repositories ... Hope this helps
trungtano
Cacti User
Posts: 90
Joined: Fri Apr 10, 2009 1:57 am
Contact:

Post by trungtano »

you can find all packages using:

yum search rrdtool

and find the correct the packages
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest