cacti 설치 Linux

]# cd /usr/local/src

]# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.22.tar.gz

]# wget http://www.cacti.net/downloads/cacti-0.8.8b.tar.gz

]# yum install -y net-snmp net-snmp-tools libart libart-lgpl-devel gd-php php-snmp php-dbase snmp

]# tar xvf rrdtool-1.2.22.tar.gz

]# cd rrdtool-1.2.22

]# ./configure --prefix=/usr/local/rrdtool

]# cd /usr/local/src

]# mkdir /usr/local/apache/htdocs/cacti

]# tar xvf cacti-0.8.8b.tar.gz

]# cp -a cacti-0.8.8b/* /usr/local/apache/htdocs/cacti/

]# mysql -u root -p
-----------------------------------------------------------------------------
mysql> use mysql;

mysql> create database cacti;

mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';

mysql> flush privileges;
-----------------------------------------------------------------------------

]# cd /usr/local/apache/htdocs/cacti/

]# mysql -u root -p cacti < cacti.sql

]# vi /usr/local/apache/conf/httpd.conf
---------------------------------------
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
---------------------------------------

]# /etc/init.d/httpd restart

http://222.239.255.95/cacti

[NEXT >>] -> [NEXT >>]
---------------------------------------------------------------
[NOT FOUND] RRDTool Binary Path: The path to the rrdtool binary.

/usr/local/rrdtool/bin/rrdtool

[NOT FOUND] PHP Binary Path: The path to your PHP binary file (may require a php recompile to get this file).

/usr/local/php/bin/php

ID : admin PW : admin

[Console] - Configuration - Settings - [Paths] - save
[Console] -Configuration - Settings - [General] - save

[graphs] 확인하면 x박스표시가 되어있다 이것은..
---------------------------------------------------------------
]# cd /usr/local/apache/htdocs/cacti

]# /usr/local/php/bin/php poller.php
------------------------------------
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.02
OK u:0.00 s:0.00 r:0.02
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.05
OK u:0.00 s:0.00 r:0.05
OK u:0.00 s:0.00 r:0.09
OK u:0.00 s:0.00 r:0.09
11/27/2013 01:14:22 PM - SYSTEM STATS: Time:0.2116 Method:cmd.php Processes:1 Threads:N/A
Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
------------------------------------

]# crontab -e
*/5 * * * * /usr/local/php/bin/php /usr/local/apache/htdocs/cacti/poller.php > /dev/null 2>&1

]# chmod -Rf 777 rra

graphs 확인완료!!

Leave Comments