Cacti monitoring software:
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
Start the MySQL service
# service Mysqld Start or
#/etc/init.d/mysqld start
#lsof-I: 3306
#netstat-lnt|grep 330
# 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
Collect Data command join System crontab task
Echo ' */5 * * * * */usr/bin/php/var/www/html/cacti/poller.php >/dev/null 2>&1 ' >>/var/spool/cron/root
View Scheduled Tasks Crontab-l
# mysql Create user cactiuser, password cactiuser, and authorize
mysql> CREATE DATABASE Cactiuser;
Mysql> Grant all on cacti.* to ' cactiuser ' @ ' localhost ' identified by ' cactiuser ';
mysql> flush Privileges; mysql> show databases;
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/initializing cacti database
# MySQL Cacti <cacti.sql
# mysql-e "Use cacti;show tables;"
Enter http://192.168.1.106/cacti/install/in the browser and enter the Cacti Setup Wizard
The default account password for the first time is: admin
#rpm-aq|grep Net-snmp
#rpm-aq|grep RRDtool
----------------------------------------------------------------------------
/usr/bin/php/var/www/html/cacti/poller.php
If there are 100 machines installed on each machine, running the SNMP service can be monitored,
Alarm words generally use nagios, more powerful than cacti, just out of the picture is not cacti good-looking.
===============================================================
Cacti monitor the number of concurrent connections netstat different network states
Netstat-n |awk '/^tcp/{++OLDBOY[NF]} END {for (a in Oldboy) print A, oldboy[a]} '
I do not know the Netstat status parameters can be man netstat view
Unzip the Get_netstat_conn.zip plugin program
# Unzip Get_netstat_conn.zip
Copy get_netstat_tcp_oldboytraining.pl to cacti root directory, authorization 755
Test the script to return the connection state data normally
Stress testing can be performed using the pressure test tool
Cacti monitoring software