Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP, MySQL, SNMP and RRDtool.
If you want to use CACTI to monitor the Linux server's network card traffic, you need to install Net-snmp-utils-related packages on the monitored Linux servers, and we can install them via yum online, for example:After the net-snmp-utils is installed,
At first, in the Internet to find a lot of template reference documents, are not suitable for their own environment, their own groping to find out, finally made.Thank you very much for the 51 technology "YANGZHIMINGG" provided by the monitoring template, suitable for yourself.First, to "http://down.51cto.com/data/382105" Download the template, download the decompression, the "ss_get_mysql_stats.php" script to upload to the server "/usr/share/
The first part
First to install the Epel extension sourceYum Install Epel-release
Then install HTTP PHP MySQL separatelyYum install httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel
Installing cacti NET-SNMP RRDtoolYum install-y cacti Net-snmp net-snmp-utils rrdtool
Start the service/etc/init.d/mysqld start/ETC/INIT.D/HTTPD start/ETC/INIT.D/SNMPD s
Cacti is a network traffic monitoring graphical analysis tool, need to use the PHP language to achieve, installation needs to configure the database, so many people in the installation of the time encountered a lot of problems, the following small series to introduce the next in the Gentoo system to install the cacti.
Cacti
CactiIs a set of network traffic monitoring graphical analysis tools developed based on PHP, MySQL, SNMP, and RRDTool. CactiTemplateYesMySQL statsLet's explain it!
1. MySQL stats Template
Forum discussion: http://forums.cacti.net/about11010.html
: Http://www.faemalia.net/mysqlUtils/
Function: monitors the MySQL status, including index usage, query, sorting, and locking.
1 ). set mysql_stats.php and dumpMemcachedStats. put the php script in the
Installation environment:
Centos 5.6 x86_64
Cacti-0.8.7g
Snmpdiskio-0.9.4
Install
1. You can download snmpdiskio in windows. Decompress the downloaded package. After decompression, the README file is an English installation document.
A. Upload the snmpdiskio file in the decompressed folder to the/usr/local/bin directory of the monitored server.
Since 9.4 is too old to support 2.6 kernel, need to modify, from http://forums.cacti.net/viewtopic.php? P
Installation environment: centos5.6x86 _ 64cacti-0.8.7gsnmpdiskio-0.9.4 installation 1. download snmpdiskio in windows. Decompress the downloaded package. After decompression, the README file is an English installation document. A. decompress the package and try snmpdiskio in the folder...
Installation environment:
Centos 5.6 x86_64
Cacti-0.8.7g
Snmpdiskio-0.9.4
Install
1. you can download snmpdiskio in windows. Decompress the downloaded package. A
This experiment is the second step of installing and configuring Nagios and Cacti. The Cacti installation and configuration adopts the previously established lamp environment, which requires many auxiliary kits to be installed, cacti collects data through net-snmp, stores templates, host information, and rra information through Mysql, and stores data through RRdt
a brief introduction to cactiCacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development. Use PHP for front-end code drivers. The data information of the monitored host is obtained through SNMP. RRDtool is related to the generation of data stores and graphs. MySQL works with PHP programs to store variable data and make calls to variable data. It provides very powerful data and user manageme
cacti_host_template_redis_server.xml file to cacti,
You can add the redis server to be monitored to the device. The default template should only have four modules for monitoring,
If there is no data, check whether the redis-status.py file has execution permission in the/var/www/html/scripts/directory on the server side, if you have the permission, run the command to go to the/var/www/html/RRA/directory
One, download the required installation packageThere are two methods of downloading:1. Download to local, install by Mount:Main download page: http://docs.cacti.net/Php-weathermap-0.97a.zipSettings-v0.71-1.tgzThold-0.4.1.tar.gzMonitor-v1.3-1.tgz2, directly in the CentOS through the wget command to download the installation:wget http://docs.cacti.net/plugin:settings/settings-v0.71-1.tar.gzwget Http://www.network-weathermap.com/files/php-weathermap-0.97a.zipwget http://docs.cacti.net/plugin:monito
Figure-Cacti
Introduction
CactiIt uses snmpget to obtain data and draw images using RRDtool. You do not need to understand the complex parameters of RRDtool. It provides powerful data and user management functions, allowing each user to view the tree structure, host, and any graph, and perform user verification with LDAP, you can also add templates by yourself, which are very powerful and complete. User-friendly.
The development of
Note: The cactiez Chinese Version v10.1 is an operating system based on the centos 6.0 system and integrated with cacti and other related software!
Advantage: saves the complicated and cumbersome cacti configuration process and can be used after installation. The interface is more friendly in all Chinese languages.
Disadvantage: cactiez is a complete operating system that requires a dedicated computer for
[check_df] =/usr/local/nagios/libexec/check_disk-x
/Dev-w 20-c 10 ".
● Command [check_ip_connets] =/usr/local/nagios/libexec/ip_conn.sh 8000 ip connection
Number,
(4) create a monitoring script on the monitored end
[Root @ cacti nagios] # cd/usr/local/nagios/libexec/
[Root @ cacti libexec] # vi ip_conn.sh
The script content is as follows:
#! /Bin/sh
# If [$ #-ne
Recently, someone asked me where to download the cacti Chinese version and how to install it. Here I will explain it to you:Cacti Chinese VersionInCentosInstall On
1. Basic installation
Cacti runs in a working environment such as Apache + PHP + MySQL + net-snmp tool set + rrdtool. Therefore, we need to create a basic working environment first.
Note: Install the RPM extension package before installation. For
Monitoring host 192.168.24.69, the following with a for the monitored host 192.168.24.79, the following with the B ID remember to import monitoring MySQL templates files in the a server cacti 1. Install Snmp#yum installed on B net-snmp#vi/etc/snmp/snmpd.conf change the following section to start the SNMPD service and join the boot task #service snmpd start#chkcon
monitor: Shell pythonSetting up a monitoring server: monitor the specified hostNagios Cacti Zabbix++++++++++++++++++++++++++++++++++++++++Prepare a new server for monitoring server: Configuration requirements:#setenforce 0#systemctl Stop Firewalld; Systemctl Disable FIREWALLD;#配置本地yum源#ip地址 192.168.4.56+++++++++++++++++++++++++++++++++++++++++A. Build Nagios
Since cmd.php cannot meet the project requirements, replace it with spine
1. Download the latest version of Cacti-spine (to match the cacti version used)
Download Address: http://www.cacti.net/downloads/spine/
2. Due to the installation of spine, the test found that the implementation of the-with-snmp=/usr/include/net-snmp/newspaper "Error:cannot Find Ucd-snmp Libraries (SNMP)" This error, The last net-s
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.