|
Cacti Profile
This chapter structure
Common Platform
Common server monitoring software
cacti, traffic and performance monitoring based ---- http: //www.cacti.net/
nagios, service and performance monitoring based --- http: //www.nagios.org/
Other tools
RRDtool, polling data tools
SNMP principle
Working structure of cacti
C / S mode, the data acquisition monitoring
B / S model, management monitoring platform
Deployment Environment
Environment: operating system host A and B is CentOS6.6 x86_64, minimizing installation, are closed SELINUX and firewalls, host A as a monitoring client host B as imported Champions League side, IP address 192.168.131.138 and 192, respectively. 168.131.139.
Deployment cacti operating environment
# Yum -y install httpd mysql mysql-server mysql-devel php php-mysql
# Yum -y install zlib freetype libjpeg fontconfig libxml2 gd php-gd
# Yum -y install rrdtool
# Yum -y install net-snmp net-snmp-utils
# Service httpd start
# Chkconfig httpd on
# Service mysqld start
# Chkconfig mysqld on
# Service snmpd start
# Chkconfig snmpd on
Install cacti
# Tar xf cacti-0.8.7g.tar.gz -C / var / www / html /
# Cd / var / www / html /
# Mv cacti-0.8.7g / cacti
# Vim cacti / include / config.php
# Mysql
mysql> create database cacti;
. Mysql> grant all on cacti * to 'cactiuser' @ 'localhost' identified by '123456';
mysql> flush privileges;
mysql> exit
# Chown -R root: root / var / www / html / cacti /
# Useradd cacti
# Chown -R cacti: cacti / var / www / html / cacti / log /
# Chown -R cacti: cacti / var / www / html / cacti / rra /
# Mysql cacti
In the browser input http://192.168.131.138/cacti/install/, enter cacti Installation Wizard
Configuring Monitored end
# Yum -y install net-snmp
# Vim /etc/snmp/snmpd.conf
com2sec notConfigUser 192.168.131.138 public123
access notConfigGroup "" any noauth exact all none none
view all included .1 80
# Service snmpd start
Configuring server-side
# Vim /etc/snmp/snmpd.conf
# Service snmpd restart
Configuring monitoring
In the cacti web interface
Click the "Devices" "add"
Monitoring client operation
# Su - cacti
$ Php /var/www/html/cacti/poller.php # begin synchronizing data
# Crontab -e
* / 5 * * * * / usr / bin / php /var/www/html/cacti/poller.php
Setting crond task to be performed once every 5 minutes
# Chkconfig crond on |
|
|
|