Cacti is a system monitoring graphical analysis tool developed based on php, mysql, snmp, and rrdtool. It obtains data through snmp, you can use rrdtool to draw images without having to understand the complex command parameters of rrdtool. It provides a very powerful data and user management interface, you can specify that each user can view the tree structure and any image of the host, and perform user authentication in combination with LDAP. You can also add custom monitoring templates to monitor windows operating systems, powerful functions, user interface
Cacti is a system monitoring graphical analysis tool developed based on php, mysql, snmp, and rrdtool. It obtains data through snmp, you can use rrdtool to draw images without having to understand the complex command parameters of rrdtool. It provides a very powerful data and user management interface, you can specify that each user can view the tree structure and any image of the host, and perform user authentication in combination with LDAP. You can also add custom monitoring templates to monitor windows operating systems, powerful functions and user-friendly interfaces. Currently, cacti is widely used, such as portal websites, IDC data centers, like Beijing tongniu information data center and China Unicom data center, cacti has been used as the network traffic monitoring system. Of course, my company is also using cacti to complete some monitoring roles, let's sort it out and share it with you!
Install apache
123456 |
tar xzvf httpd- 2.2 . 24 .tar.gz cd httpd- 2.2 . 24 ./configure --prefix=/usr/local/apache --enable-so make && make install /usr/local/apache/bin/apachectl start echo "/usr/local/apache/bin/apachectl start" >> /etc/rc.local |
Install mysql
123456789101112 |
tar xzvf mysql- 5.1 . 65 .tar.gz cd mysql- 5.1 . 65 ./configure --prefix=/usr/local/mysql -- with -extra-charsets=gbk,gb2312,utf8 make && make install cd /usr/src/source/mysql- 5.1 . 65 / cp support-files/my-medium.cnf /etc/mysql/my.cnf ./scripts/mysql_install_db --user=mysql chown -R mysql.mysql /usr/local/mysql/data chgrp -R root.mysql /usr/local/mysql /usr/local/mysql/bin/mysqld_safe --user=mysql & /usr/local/mysql/bin/mysqladmin -uroot password 123456 echo "/usr/local/mysql/bin/mysqld_safe --user=mysql &" >> /etc/rc.local |
Install php
1234567 |
yum install libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel gd gd-devel tar xzvf php- 5.4 . 11 .tar.gz cd php- 5.4 . 11 ./configure --prefix=/usr/local/php -- with -apxs2=/usr/local/apche/bin/apxs -- with -mysql=/usr/local/mysql - with -gd -- with -freetype-dir -- with -jpeg-dir -- with -png-dir --enable-sockets make && make install ln -s /usr/local/php/bin/* /usr/local/bin cp php.ini-dist /usr/local/php/lib/php.ini |
Edit httpd. conf and add the following content to the configuration file:
Modify DirectoryIndex content
Test with a php Probe
Cd/usr/local/apache/htdocs/
Cat test. php
Install rrdtool
123456 |
yum install cairo-devel libxml2-devel pango pango-devel tar xzvf rrdtool- 1.4 . 6 .tar.gz cd rrdtool- 1.4 . 6 ./configure --prefix=/usr/local/rrdtool make && make install ln -s /usr/local/rrdtool/bin/* /usr/local/bin/ |