監控軟體cacti之安裝

2021-09-21 10:02:18 字數 3066 閱讀 4121

1.安裝系統依賴包和搭建lamp環境

測試:

2.安裝cacti監控軟體

[root@tong2 ~]# wget 

[root@tong2 ~]# tar xvf cacti-0.8.8c.tar.gz

[root@tong2 ~]# mv cacti-0.8.8c /var/www/html/cacti

[root@tong2 ~]# cd /var/www/html

[root@tong2 html]# chown -r apache:apache cacti/

[root@tong2 html]# mysql -u root -p

enter password: 

welcome to the mysql monitor.  commands end with ; or \g.

your mysql connection id is 4

server version: 5.6.21-log mysql community server (gpl)

oracle is a registered trademark of oracle corporation and/or its

affiliates. other names may be trademarks of their respective

owners.

type 'help;' or '\h' for help. type '\c' to clear the current input statement.

mysql> grant all privileges on cacti.* to cacti@'localhost' identified by 'system';

query ok, 0 rows affected (0.01 sec)

mysql> flush privileges;

mysql> create database cacti;

mysql> \u cacti

mysql> source /var/www/html/cacti/cacti.sql ;

mysql> exit

bye  

[root@tong2 html]# vim cacti/include/config.php

$database_type = "mysql";                     

$database_default = "cacti";                      --指定資料庫

$database_hostname = "localhost";            --資料庫伺服器主機

$database_username = "cacti";                  --使用者名稱

$database_password = "system";              --密碼

$database_port = "3306";                          --埠

$database_ssl = false;

[root@tong2 html]# crontab  -e     --rrdtool繪圖

3.測試

初使密碼:admin

修改密碼:system

Cacti(系統監控)

cacti 系統監控 cacti是一套基於php,mysql,snmp及rrdtool開發的網路流量監測圖形分析工具。注 中文版安裝擴充套件外掛程式時不成功 我是沒做成 建議使用英文版 已做成 位 64位 漢化版 英文版 rpm ivh media cdrom server lm sensors 2...

監控軟體nagios之安裝

1.安裝軟體依賴包和建立nagios使用者 root tong1 yum install gcc gcc c make y root tong1 groupadd g 500 nagios root tong1 useradd r u 500 s sbin nologin g nagios nagi...

cacti監控tomcat服務

2009年8月17日騾騾 配置tomcat vi usr local tomcat conf tomcat users.xml version 1.0 encoding utf 8 rolename manager username tomcat password vale.com init rol...