整理了cacti安裝和plugin安裝
System:centos
kernel: 2.6.14
mysql: 5.0
nginx: 0.8
php fastcgi: 5.2.8
rrdtool: 1.3 目前只支援1.3
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…
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)
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)
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
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
#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
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”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “username”;
$database_password = “passwd”;
#useradd cacti
#passwd cacti
#su – cacti
#crontab -u cacti -e
*/5 * * * * php /data/wwwroot/cacti/poller.php > /dev/null 2>&1
/etc/init.d/crond restart
#passwd cacti
#su – cacti
#crontab -u cacti -e
*/5 * * * * php /data/wwwroot/cacti/poller.php > /dev/null 2>&1
/etc/init.d/crond restart
5、nginx config
server
{
listen 80;
server_name cacti.opendoc.com.cn;
index index.php index.html;
root /data/wwwroot/cacti ;
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include enable_php5.conf;
}
}
server
{
listen 80;
server_name cacti.opendoc.com.cn;
index index.php index.html;
root /data/wwwroot/cacti ;
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include enable_php5.conf;
}
}
6、make spine
tar xvzf cacti-spine-0.8.7e.tar.gz
cd cacti-spine-0.8.7e
./configure
make && make install
tar xvzf cacti-spine-0.8.7e.tar.gz
cd cacti-spine-0.8.7e
./configure
make && make install
用cactiuser使用者手動執行 $ /usr/bin/php /data/wwwroot/cacti/poller.php 沒有反應
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
7、安裝plugin
unzip cacti-plugin-0.8.7e-PA-v2.6.zip -d cacti-plugin-arch
cp -R cacti-plugin-arch/* /data/wwwroot/cacti
#cd /data/wwwroot/cacti
#mysql -ucactiuser -p cacti < pa.sql
如果你是中文的cacti,就執行下面的命令(需要下載)
patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6-cn-utf8.diff
如果你是英文的,就下載原來的
patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6.diff
unzip cacti-plugin-0.8.7e-PA-v2.6.zip -d cacti-plugin-arch
cp -R cacti-plugin-arch/* /data/wwwroot/cacti
#cd /data/wwwroot/cacti
#mysql -ucactiuser -p cacti < pa.sql
如果你是中文的cacti,就執行下面的命令(需要下載)
patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6-cn-utf8.diff
如果你是英文的,就下載原來的
patch -p1 -N < cacti-plugin-0.8.7e-PA-v2.6.diff
vim include/global.php
$config[`url_path`] = ‘/cacti/’;
進入”使用者管理”->點admin->區域許可權->Plugin Management
$config[`url_path`] = ‘/cacti/’;
進入”使用者管理”->點admin->區域許可權->Plugin Management
8、其它的外掛下載後放到plugin目錄就可以了。
本文轉自守住每一天51CTO部落格,原文連結:http://blog.51cto.com/liuyu/259995,如需轉載請自行聯絡原作者
相關文章
- Nagios Plugin for Cacti 安裝使用篇(zt)iOSPlugin
- cacti安裝紀實
- Cacti的安裝之CentOSCentOS
- Ubuntu安裝cacti步驟Ubuntu
- ubuntu下cacti安裝配置Ubuntu
- Vim Plugin - Tabular 安裝Plugin
- Cacti和Zabbix所需Nginx安裝配置(一)薦Nginx
- cacti+nagios 之cacti外掛安裝monitor和ntop(五)iOS
- apache安裝和調整效能安裝實踐(轉)Apache
- cacti安裝thold外掛
- Cacti安裝磁碟IO監控
- cacti監控(2)正式安裝rrdtoolcacti
- Linux下常用監控cacti的安裝和配置Linux
- cacti監控(1)基礎安裝apachemysqlphpApacheMySqlPHP
- CentOS7安裝cacti1.1.xCentOS
- freebsd7.0安裝cacti手冊
- FreeMarker Eclipse Plugin的安裝!EclipsePlugin
- Ubuntu解除安裝和安裝Ubuntu
- cacti一鍵安裝指令碼V1.1指令碼
- cacti安裝筆記v2new薦筆記
- 轉載 使用Cacti監控你的網路(二)- Cacti的安裝
- Eclipse基礎--plugin外掛安裝EclipsePlugin
- zabbix安裝—–nginx安裝和配置Nginx
- linux 解除安裝jdk和安裝LinuxJDK
- node安裝和淘寶映象cnpm安裝NPM
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- Redmine 安裝並配置使用Agile plugin外掛Plugin
- Windows下安裝Cacti流量與系統資訊監控Windows
- Cacti EZ中文版 12.2.27 ISO 下載安裝
- Ubuntu解除安裝及安裝node和npmUbuntuNPM
- ElasticSearch的安裝和使用,Postman的安裝,Kibana的安裝,EShead外掛的安裝ElasticsearchPostman
- Nuxt.js安裝Pinia與pinia-plugin-persistedstateUXJSPlugin
- 寫了一遍垃圾的CACTI安裝使用參考
- 利用Rpmforge更新centosyum源快速安裝nagios與cactiCentOSiOS
- memcached安裝和php擴充套件memcache安裝PHP套件
- Oracle 19C的下載和安裝部署(圖形安裝和靜默安裝)Oracle
- php-util - 整理了部分常用php方法, composer安裝PHP
- 配置CACTI監控MySQL資料庫狀態(2)安裝cacti相關軟體包MySql資料庫