'cacti'에 해당되는 글 1건

  1. 2008.09.05 Cacti + RRDTool 이용한 모니터링

예전부터 계속 시도하다가 뭔가 에러가 나서 설치를 못했었는데
드디어 성공!!ㅎㅎ (버젼문제였었던듯..;)

RRDTool : ver 1.2.23
Cacti : ver 0.8.7b

위 버젼으로 맞춰야 하는듯...; RRDTool 은 최신버젼 있으나 최신버젼에선 이상하게 에러나서..;

0. 사전 기타 필요한것 설치
#wget http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
#rpm -Uvh ./rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
#yum install freetype-devel libpng-devel libart-lgpl

1. RRDTool 설치
#wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.2.23.tar.gz
#tar zxvf rrdtool-1.2.23.tar.gz
#cd rrdtool-1.2.23
#./configure --disable-tcl
#make
#make install
#ln -s /usr/local/rrdtool-1.2.23/bin/rrdtool /usr/local/bin/rrdtool

2. Cacti 설치
#wget http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz
#wget http://cactiusers.org/downloads/cacti-plugin-arch.tar.gz
#useradd cacti
#tar zxvf cacti-0.8.7b.tar.gz
#mv cacti-0.8.7b /home/cacti/public_html
#tar zxvf cacti-plugin-arch.tar.gz
#cd cacti-plugin-arch
#cp cacti-plugin-0.8.7b-PA-v2.1.diff /home/cacti/public_html/
#patch -p1 -N --dry-run < cacti-plugin-0.8.7b-PA-v2.1.diff (에러가 있나테스트)
#patch -p1 -N < cacti-plugin-0.8.7b-PA-v2.1.diff
#chgrp [apache실행권한] log/cacti.log
#chmod 664 log/cacti.log
#mysql -h [DB서버] -u cacti -p cacti < /home/cacti/public_html/cacti.sql
#vi /home/cacti/public_html/include/global.php -> DB세팅

3.기타
crontab 등록
*/5 * * * * /usr/local/php/bin/php /home/cacti/public_html/poller.php >/dev/null 2>&1
apache 세팅
Virtualhost -> URL <=> /home/cacti/public_html

4. 접속
http://주소
ID : admin / PASS : admin  (접속후 초기비번 변경)

Posted by 호랭이~