Cacti Simple Deployment
- Cacti Introduction
- Structure of this chapter
- Common platforms
Common server monitoring software
Cacti , flow and performance monitoring mainly ----http://www.cacti.net/
Nagios , service and performance monitoring mainly ---http://www.nagios.org/
Other related tools
RRDtool , poll data Tools
- SNMP principle
Category |
Label |
The information that is contained |
system |
(1) |
host or router operating system |
interfaces |
(2) |
Various network interfaces and their measured traffic |
address transiation |
(3) |
address translation (e.g. ARP mapping) |
ip |
(4) |
internet Software (IP packet statistics) |
icmp |
(5) |
icmp Software (statistics of ICMP messages received) |
tcp |
(6) |
tcp software (algorithms, parameters and statistics) |
udp |
(7) |
UDP Software (UDP traffic statistics) |
Egp |
(8) |
EGP Software (External Gateway Protocol traffic statistics) |
- Working structure of cacti
C/S mode, collect monitoring data
b/S mode, management monitoring platform
- Environment deployment
environment: host a and host b The operating system is centos6.6 x86_64 , minimized installation, all closed selinux a as the monitoring side, the host b as being imported Euguantang, ip addresses are 192.168.131.138 192 168.131.139
- Deploying the Cacti Runtime 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
- Installing 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 </var/www/html/cacti/cacti.sql
in the browser input http://192.168.131.138/cacti/install/ , enter Cacti Installation Wizard
- Configuring the monitored side
# yum-y Install Net-snmp
# vim/etc/snmp/snmpd.conf
Com2sec Notconfiguser 192.168.131.138 public123
Access Notconfiggroup "" Any noauth exact none none
View all included. 1 80
# service SNMPD Start
- Configure Server-side
# vim/etc/snmp/snmpd.conf
# Service SNMPD Restart
- Configuring monitoring
in the Cacti Web Interface
Click on the " Devices " à "Add"
Add an image tree
Monitoring side operation
# SU–CACTI
$ php/var/www/html/cacti/poller.php # Start Synchronizing Data
# crontab–e
*/5 * * * */usr/bin/php/var/www/html/cacti/poller.php
Set Crond task to make it every 5 minutes to execute once
# Chkconfig Crond on
The image shows up.
Cacti Simple deployment