扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
cacti安装和plugin安装如下!
System:centos
kernel: 2.6.14
mysql: 5.0
nginx: 0.8
php fastcgi: 5.2.8
rrdtool: 1.3 目前只支持1.3
download:
http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
http://www.cacti.net/downloads/spine/cacti-spine-0.8.7e.tar.gz
wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7e-PA-v2...
Install:
1、yum -y install net-snmp net-snmp-devel openssl-devel rrdtool
2、mysql setting
mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON cacti.* TO 'username'@'localhost' IDENTIFIED BY 'passwd'
WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
3、net-snmp
#more /etc/snmpd/snmpd.conf
com2sec local 127.0.0.1/32 public
com2sec local 192.168.1.0/24 public
group MyROGroup v1 local
group MyROGroup v2c local
group MyROGroup usm local
view all included .1 80
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access MyROGroup "" any noauth exact all none none
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
syslocation (/etc/snmp/snmpd.conf)
syscontact Me liuyu105@gmail.com
snmpwalk -c public -v 2c localhost if
4、tar zxvf cacti-0.8.7e.tar.gz
cp -r cacti-0.8.7e /data/wwwroot/cacti
#mysql -u username -p passwd cacti < cacti.sql
#chown -R cacti rra/ log/
#vi cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "username";
$database_password = "passwd";
通过代码的描述,我们知道了cacti安装和plugin安装需要哪些步骤,希望大家能学会!
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者