linux之cacti使用
安裝部署cacti
第一步:在安裝系統的時候安裝mysql,aparch,php資料庫
第二步:安裝以下的2個軟體
下載cacti並且安裝
www.cacti.net/download_cacti.php
[root@cacti ~]# tar xzvf cacti-0.8.7g.tar.gz
移動解壓後的cacti到以下的目錄
[root@cacti ~]# mv cacti-0.8.7g /var/www/html/cacti
下載rrdtool並且安裝
http://www.linuxeden.com/download/data/soft/1697.html
[root@cacti ~]# tar xzvf rrdtool-1.4.5.tar.gz
[root@cacti rrdtool-1.4.5]#./configure
[root@cacti rrdtool-1.4.5]# make && make install
第三:建立資料庫並建立使用者
[root@cacti ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
建立資料庫
mysql> create database cacti;
Query OK, 1 row affected (0.01 sec)
建立使用者
mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactipwd';
Query OK, 0 rows affected (0.00 sec)
重新整理資料庫
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
退出資料庫
mysql> quit
Bye
第四步:
進入如下目錄
[root@cacti ~]# cd /var/www/html/cacti/
把cacti資料庫匯入到mysql資料庫
[root@cacti cacti]# mysql cacti
[root@cacti include]# pwd
/var/www/html/cacti/include
修改config.php檔案的使用者名稱和密碼
[root@cacti include]# vi config.php
修改global.php檔案的使用者名稱和密碼
[root@cacti include]# vi global.php
第五步:建立排程任務
修改目錄的許可權
[root@cacti cacti]# pwd
/var/www/html/cacti
[root@cacti cacti]# chown -R root.root *
建立任務排程
crontab -e
*/5 * * * * php /var/www/html/cacti/poller.php >/dev/null 2>&1
[root@cacti cacti]# crontab -l
*/5 * * * * php /var/www/html/cacti/poller.php >/dev/null 2>&1
第六步:配置頁面
http://192.168.100.91/cacti/install/index.php
[root@cacti cacti]# cd /opt/rrdtool-1.4.5/bin/rrdtool
預設的cacti的使用者和登入密碼是admin
第七步:修改版本資訊
console-->settings-->RRDTool Utility Version(RRDTool 1.3x)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20976446/viewspace-687204/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux下cacti監控平臺的搭建Linux
- 寫了一遍垃圾的CACTI安裝使用參考
- linux之iptables使用Linux
- Cacti如何實現電話告警
- linux之screen命令使用Linux
- Linux之history使用技巧Linux
- Cacti+Nagios監控平臺完美整合iOS
- 揭開 Hyperledger Cacti 專案的面紗
- Linux學習之linux的find命令如何使用?Linux
- Linux之cat的使用介紹Linux
- Cacti EZ中文版 12.2.27 ISO 下載安裝
- Linux基礎之使用者和組Linux
- Linux 三劍客之 grep 使用詳解Linux
- (四)Linux之使用者管理(使用者和使用者組)Linux
- linux學習之使用者的切換Linux
- 手記系列之七 ----- 分享Linux使用經驗Linux
- 使用GDK7除錯Linux核心之KVM除錯Linux
- Linux之普通使用者ssh到指定目錄Linux
- Linux使用者管理之useradd、passwd命令講解Linux
- Linux安裝之Linux mintLinux
- zabbix、cacti、nagios,伺服器監控還有更好的選擇嗎?iOS伺服器
- linux之lvmLinuxLVM
- linux之 awkLinux
- linux之sedLinux
- linux之awkLinux
- Linux之 psLinux
- Linux 之管道Linux
- linux之openEuler /centos7防火牆基本使用指南LinuxCentOS防火牆
- 【轉載】Linux核心除錯之使用模組引數Linux除錯
- 使用GDK7除錯Linux核心之printk函式除錯Linux函式
- 【Linux】Linux檔案之/etc/fstabLinux
- Linux使用者管理之usermod、chage、userdel、id命令講解Linux
- linux 高效壓縮工具之xz的壓縮解壓使用Linux
- linux操作之ntsysvLinux
- linux之 sed命令Linux
- Linux命令之fdiskLinux
- linux命令之grepLinux
- linux之vim命令Linux
- Linux 命令之 tarLinux