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

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Linux Server, Virtual Machine Manager | 14 Comments | 30,648 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: