Common monitoring software are: Cacti, nagios, Zabbix, etc.
Cacti heavy graphics, data history, need to database support, support Web configuration, default does not support alarm, can add plug-ins;
Nagios heavy status and results, no data history, no image, no web configuration, can develop scripts to customize personalized monitoring, support a variety of plug-ins;
Zabbix has data history, can be image, support Web configuration, can be automatically discovered;
About cacti you can refer to the notes of 6 classmates, there is a very intuitive figure (http://mylinuxlife.blog.51cto.com/4706737/1661680)
Cacti installation Configuration
1. First to install the Epel extension source
Yum Install Epel-release
2. (lamp) then install httpd, PHP, MySQL separately
Yum install-y httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel
3. Install cacti NET-SNMP RRDtool
Yum install-y cacti Net-snmp net-snmp-utils rrdtool
4. Start the service:
/etc/init.d/mysqld start
/ETC/INIT.D/HTTPD start
/ETC/INIT.D/SNMPD start
5. Edit the httpd configuration file
Vim/etc/httpd/conf.d/cacti.conf
Change "Deny from all" to "Allow from all"
/ETC/INIT.D/HTTPD restart
6. Import data Create cacti Library
MYSQL-UROOT-E "CREATE Database Cacti"
Create cacti User
MYSQL-UROOT-E "Grant all on cacti.* to ' cacti ' @ ' 127.0.0.1 ' identified by ' cacti ';"
Import SQL file
Mysql-uroot Cacti </usr/share/doc/cacti-0.8.8b/cacti.sql
7. Edit the cacti configuration file
vim/usr/share/cacti/include/config.php changes as follows:
$database _type = "MySQL";
$database _default = "cacti";
$database _hostname = "127.0.0.1";
$database _username = "cacti";
$database _password = "cacti";
$database _port = "3306";
$database _ssl = false;
8. Web Access cacti and installation
http://ip/cacti/
Click "Next" and "Finish" at two.
Enter Admin Admin login, reset new password
9. Execute poller.php, generate graphics, join scheduled Tasks
/usr/bin/php/usr/share/cacti/poller.php adding cron Tasks
CRONT-E Increase:
*/5 * * * */usr/bin/php/usr/share/cacti/poller.php
The following 10-12 steps operate on the client machine
10. Install SNMP
Yum Install-y Net-snmp
11. Modify Snmpd.conf
Modify Syslocation and Syscontact, where syslocation can write a machine ip,syscontact writing the admin mailbox
Syslocation 11.20
Syscontact Root[email protected]
12. Start SNMP
Service SNMPD Start
13. Login to the Cacti management background, click Console, then click Device, in the upper right corner, click "Add"
Description Write machine IP or you customize a name
Hostname Machine IP
Host Template Select Ucd/net SNMP Host
Version 2 of SNMP version selected
Click Create in the lower right corner
In the top right corner, click "Create Graphs for this Host"
Graph Types: Select Snmp-interface Statistics
In the box below select the network card to monitor, for example, I choose Eth0, in the right side of the small box to tick, and then point to the bottom right corner of create (if you cannot find the network card in this step, you can modify the configuration file according to this post http://www.apelearn.com/bbs/ thread-8089-1-1.html)
Graph Types: Then choose graph Template Based
In the box below, select the items you want to monitor, such as Ucd/net-load Average
Tick the right small square, then click Create in the lower right corner
14. Point to the left of graph Trees
Select "Default Tree"
Click Add in the upper right corner
Tree Item Type Select "Host"
Host Select the machine IP that we just added
Click Create in the lower right corner
15. Point at the top left corner of the graphs
On the left you can see
The Defaut tree below has added the host we just added, the graphics will not come out so quickly at first, it will be a little while.
Reference article http://www.it165.net/admin/html/201310/1956.html http://www.aminglinux.com/bbs/se ... submit=yes&kw=cacti
Installation and configuration of cacti under Centos 2015-08-11