06/13
2012
Cacti 0.8.8a 설치하기 - 시스템 자원 모니터링 툴 (CentOS)
칵티를 설치하려고보니 0.8.8a 까지 나왔다(지난번에 설치할때가 0.8.8).
사실 yum install 로 설치하면 간단하지만 오래된 버전밖에 없다.
새로나온것을 벌써 올려놓은 저장소 역시 찾기 어렵다.
뭐 하나하나 해보자.
우선 설치할 가상서버를 마련한다.
http://millky.com/home/byuri/10000625
설치가 완료되었다면 일단 설치
yum -y install cacti
요게 안되서 (간단하게 binstall에서 mysql설치)
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
엇 6-7로 변경 되었다.
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
설치를 하면
0.8.7i-2.el6 이것이 설치된다. 우리는 0.8.8a를 사용하고싶기 때문에~~
일단 계속 설치하자
cactiuser
service mysqld start
/usr/bin/mysqladmin -u root password #'new-password'
/usr/bin/mysqladmin -u root -p create cacti
mysql -u root -p cacti < /usr/share/doc/cacti-0.8.7i/cacti.sql
mysql -u root -p #'new-password'
GRANT ALL ON cacti.* TO cacti IDENTIFIED BY 'qwer1234';
flush privileges;
이부분은 업글 하고 합시다.
vi /usr/share/cacti/include/config.php
$database_username = "root";
$database_password = "qwer1234";
그래프 그리는 부분
vi /etc/cron.d/cacti
*/5 * * * * root /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
service crond reload
아래 보고 업글 실시
vi /etc/httpd/conf.d/cacti.conf
Order Deny,Allow
#Deny from all
#Allow from 127.0.0.1
Allow from all # 외부에서 접근 가능하도록 설정
service mysqld start
service iptables stop
service httpd start
http://192.168.0.246/cacti
admin/qwer
yum -y install php php-cli php-xm php-gd php-mysql php-common
service mysqld start
service iptables stop
service httpd start
cd /usr/share/cacti
chown -Rf cacti:apache ./
chmod -Rf 777 rra/
service snmpd start
chkconfig httpd on
chkconfig mysqld on
chkconfig snmpd on
yum -y install net-snmp-utils
#yum -y install rrdtool*
#yum -y install net-snmp-libs net-snmp-utils net-snmp
php-snmp-5.1.6-27.el5
net-snmp-libs-5.3.2.2-9.el5_5.1
net-snmp-utils-5.3.2.2-9.el5_5.1
net-snmp-5.3.2.2-9.el5_5.1
rrdtool-1.4.4-1.el5.rf
perl-rrdtool-1.4.4-1.el5.rf
cacti-0.8.7g-2.el5.rf
cacti-docs-0.8.7g-2.el5.rf
업글
0.8.8a
우선 0.8.7i를 설치한다.
세팅하기 전에 0.8.8a을 다운받아 /usr/share/cacti 에 복사한다.
yum -y install wget
wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
#tar xzvf cacti-0.8.8a.tar.gz -C /usr/share/cacti/
shell> tar xzvf cacti-version.tar.gz
cd cacti-0.8.8a
\cp -rf * /usr/share/cacti
세팅을 한다.
include/config.php 파일에 위치를 잘 지정해준다.
vi /usr/share/cacti/include/config.php
$database_username = "root";
$database_password = "qwer1234";
Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.
chown -R cacti rra/ log/
http://www.cacti.net/downloads/docs/html/unix_configure_cacti.html
vi /etc/snmp/snmpd.conf
com2sec notConfigUser default public group notConfigGroup v1 notConfigUser group notConfigGroup v2c notConfigUser view all included .1 80 access notConfigGroup "" any noauth exact all none none dontLogTCPWrappersConnects yes syslocation Unknown (edit /etc/snmp/snmpd.conf) syscontact Root(configure /etc/snmp/snmp.local.conf)
service snmpd restart
wget http://docs.cacti.net/_media/plugin:settings-v0.71-1.tgz
mv plugin\:settings-v0.71-1.tgz settings.tgz
tar -xvf settings.tgz
wget http://docs.cacti.net/_media/plugin:thold-v0.4.9-3.tgz
mv plugin\:thold-v0.4.9-3.tgz thold.tgz
tar -xvf thold.tgz
wget http://docs.cacti.net/_media/plugin:monitor-v1.3-1.tgz
mv plugin\:monitor-v1.3-1.tgz monitor.tgz
tar -xvf monitor.tgz
참고 자료
nerd 2013-04-11 10:51:10
좋은 정보 고맙습니다.rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
하니,
Retrieving http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
curl: (22) The requested URL returned error: 404
error: skipping http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm - transfer failed
어떻게 해야 할까요?