cacti(监控)
cacti拓扑http://s3.运维网.com/wyfs02/M02/72/FE/wKioL1Xxg7qDnAR9AAGVa7yIGn4537.jpg
安装需求
lamp环境
net-snmp
rrdtool
cacti-0.8.8b.tar.gz
cacti环境搭建之lamp
# yum -y install httpd mysql mysql-server mysql-php mysql-devel php php-mysql
# cat /var/www/html/index.php
# /etc/init.d/httpd start
正在启动 httpd: [确定]
# /etc/init.d/mysqld start
正在启动 mysqld: [确定]
# 访问测试php是否完成
安装信息采集
# yum -y install net-snmp net-snmp-utils net-snmp-devel
# /etc/init.d/snmpd start
正在启动 snmpd: [确定]
# chkconfig snmpd on 安装绘图工具
# yum -y install rrdtool 安装cacti,设置连接数据库
# tar zxf cacti-0.8.8b.tar.gz # mv cacti-0.8.8b/ /var/www/html/cacti/
# mysqlWelcome to the MySQL monitor.
Commands end with ; or \g.
Your MySQL connection id is 19Server
version: 5.1.73 Source distributionCopyright (c) 2000, 2013,
Oracle and/or its affiliates. All rights reserved.Oracle is a registered
trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks
of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the
current input statement.
mysql> create database cactidb;
mysql> grant all on cactidb.* to 'cactiuser'@'127.0.0.1' identified by '123123';
mysql> quit
# cd /var/www/html/cacti/
# mysql cactidb< cacti.sql
# vim include/config.php
cacti的初始化安装
# vim /etc/httpd/conf/httpd.conf
ocumentRoot "/var/www/html/cacti"
Options None
AllowOverride None
Order allow,deny
Allow from all
# /etc/init.d/httpd restart
停止 httpd: [确定]
正在启动 httpd: [确定]
# 访问安装
http://s3.运维网.com/wyfs02/M02/73/05/wKiom1XyOnPBfMtiAAOZ-239Ok4968.jpg
http://s3.运维网.com/wyfs02/M00/73/02/wKioL1XyPK7iUDu5AAGv5eY_L8c460.jpg
http://s3.运维网.com/wyfs02/M00/73/02/wKioL1XyPLuxYnGuAAQa4umQ120827.jpg
cacti默认登陆
admin 用户
admin 密码
需要修改
http://s3.运维网.com/wyfs02/M02/73/02/wKioL1XyRUPD0IqSAAFw6_NqtTo632.jpg
登陆界面
http://s3.运维网.com/wyfs02/M00/73/03/wKioL1XyRe3Rx7ElAAMcp8Iak2E279.jpg
通过命令采集本机信息
# php /var/www/html/cacti/poller.php --force
http://s3.运维网.com/wyfs02/M01/73/06/wKiom1XyRCKSTO72AAW86h6Xzbw554.jpg
里面的操作随便点也能懂。
页:
[1]