search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Cacti installation on CentOS 6 on Hyper-V – Part 1
Posted in Linux Server, Virtual Machine Manager | 14 Comments | 30,552 views | 14/08/2011 16:22

Cacti is one of the best snmp based monitoring software. I’ll show you how to install and configure it on Hyper-V.
I’ve already posted couple of articles about CentOS 6 installation on Hyper-V, so I won’t mention about that again.

You can see CentOS 6 installation on Hyper-V at the following posts:

So I assume you have a CentOS 6 with Hyper-V LIS v3.1. So lets continue with Cacti installation.
Cacti requires that the following software is installed on your system.

1. Apache
2. PHP 5.x
3. MySQL 5.x
4. RRDTool 1.2.x

It’s time to install Apache on CentOS 6.

yum install httpd

Type “y” and press Enter to accept installation.

Now, start the Apache/httpd.

1
2
chkconfig httpd on
service httpd start

Now let’s install PHP.

yum install php php-mysql php-snmp php-xml

Type “y” and press Enter to accept installation.

Now we will install MySQL.

yum install mysql mysql-server

Type “y” and press Enter to accept installation.

Now, start the MySQL/mysqld.

1
2
chkconfig mysqld on
service mysqld start

It’s time to install last component, RRDTools. First, we need to install required dependencies.

yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

Type “y” and press Enter to accept installation.

Install gcc to compile RRDTool.

yum install gcc

Type “y” and press Enter to accept installation.

Download latest RRDTool.

1
2
cd /opt/
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz

Untar tar ball.

1
2
tar -zxvf rrdtool-1.4.5.tar.gz
cd rrdtool-1.4.5

You need to set PKG_CONFIG_PATH.

PKG_CONFIG_PATH=/usr/lib/pkgconfig/

Now let’s configure and install RRDTool.

1
2
3
./configure
make
make install

After installation is completed, let’s test RRDTool.

1
2
3
4
cd /usr/local/rrdtool/share/rrdtool/examples/
./stripes.pl
ls -l
cp stripes.png /var/www/html/

Lets see our test graph:

We finished installation of required components for Cacti. Next part, we will see how to install and configure Cacti.

You can continue with Part 2:


Comments (14)

Yusuf Ozturk » Cacti installation on CentOS 6 on Hyper-V – Part 1 : FRIENDDAT BLOG

August 14th, 2011
17:52:00

[…] the original here: Yusuf Ozturk » Cacti installation on CentOS 6 on Hyper-V – Part 1 Category: TipsTags: cacti > lets-continue > lis > PHP > snmp-based > stallation-on-hyper > […]


Yusuf Ozturk » Cacti installation on CentOS 6 on Hyper-V – Part 1 | Linux Blog

August 18th, 2011
13:53:55

[…] CentOS 6 installation on Hyper-V, so I won't mention about … Read the original post: Yusuf Ozturk » Cacti installation on CentOS 6 on Hyper-V – Part 1 This entry was posted in Uncategorized and tagged already-posted, snmp-based, […]


Script to install Cacti on CentOS 6 or Red Hat 6 | Chris's Blog

August 29th, 2011
23:58:06

[…] so you will have to change that on the prerequisites page when you get to it. I used this blog to walk through the steps while I was creating the script. Here is the script: # Cacti Install […]


Dreas

November 9th, 2011
12:55:04

Hi, very good tutorial, but with the rrdtool i’ve got a problem wehn installing version 1.4.5 hte perl-rrdtool part is missing. Where can i get it?

Kind Regards Dreas


admin

November 9th, 2011
15:19:07

Hi Dreas,

A component or link is missing? Could you provide more details please? Exactly on which step do you get issue?

Yusuf.


Dreas

November 10th, 2011
12:06:49

Hi Yusuf,

when testing the Graph in rrdtool it is missing perl-rrdtool components

Dreas


Ben

November 23rd, 2011
03:38:12

yum install perl-ExtUtils-MakeMaker which will take care of the missing build stuff admin mentions


Rich

January 10th, 2012
15:44:49

Seems I can’t access the http site, selinux is disabled by IP, followed everything step by step making sure I installed MakeMaker. Anything I can check? Thanks!


Rich

January 10th, 2012
15:48:36

Well, I had to do ‘service iptables stop’ seems it was blocking 80, cheers


abdul rahim

April 20th, 2012
19:00:19

hi yusuf
i tried to install but i’m stack on the level where we need to test rrdtool after getting in /examples/ and typing this ./stripes.pl i got an error saying Can’t locate RRDs.pm in @INC (@INC contains : /opt/rrdtool-1.4.5/lib/perl/usr/local………..

please help me to handle this issue i realy need to install this device.

thnx


Sercan

May 4th, 2012
06:46:00

Hi Abdul,

Run the this command :

>> yum -y install rrdtool perl-rrdtool

and try then running >> ./stripes.pl

Output :

This script has created stripes.png in the current directory
This demonstrates the use of the TIME and % RPN operators

and continu with yusuf installation…


Best and most accurate directions for Cacti install | Riding the S-Curve

May 8th, 2012
02:48:19

[…] http://www.yusufozturk.info/virtual-machine-manager/cacti-installation-on-centos-6-on-hyper-v-part-1… jQuery(document).ready(function(){ jQuery.post("http://blog.wanfuse.com/wp-content/plugins/track-that-stat/registerPageSession.php",{ current_post_id: "87" }); jQuery.post("http://blog.wanfuse.com/wp-content/plugins/track-that-stat/update.php",{ ajax: "ajax" }); setInterval("updateOnlineStatus()", 50000); // Update every 50 seconds }); function updateOnlineStatus() { jQuery.post("http://blog.wanfuse.com/wp-content/plugins/track-that-stat/update.php",{ ajax: "ajax" }); } […]


Jens Jönsson

September 24th, 2012
16:10:00

If you miss the path to SNMP tools, maybe you need to install them:
yum install net-snmp-utils


Enes

October 17th, 2012
00:17:58

Teşekkür ederim.Yazıyı güzel hazırlamışsın. bazı şeyleri anlamam icin iyi oldu.
depodan hazır kurulum yöntemide var bana daha kolay geliyor. Biraz reklam olacak ama :))

http://cacti-tr.blogspot.com/2012/05/linuxcentos-uzerine-sfrdan-cacti.html



Leave a Reply