Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. Cacti Chinese version uses snmpget to obtain data and use RRDtool to draw images. You do not need to understand the complex parameters of RRDtool.
1. Configure the httpd server configuration file
# Vim/etc/httpd/conf. d/cacti. conf
Alias/cacti/var/www/cacti
DirectoryIndex index. php
AllowOverride all
Order deny, allow
Deny from all
Allow from all
AddType application/x-httpd-php. php
Php_flag magic_quotes_gpc on
Php_flag track_vars on
Restart the httpd service to make the above modification take effect.
#/Etc/init. d/httpd restart
Ii. test whether the installation is normal
Open the following url.
Http://server.ip.or.name/cacti
Open the website, click next, select new install, and press Enter.
The Last User Name is admin and the password is admin.
Iii. Final Stage
The system collects data every five minutes.
Crontab-e
*/5 * cacti php/var/www/cacti/poller. php &>/dev/null
You can also run it once manually:/var/www/cacti/poller. php
4. Solution to abnormal display of fonts in Images
Download and install the cjkuni-fonts Chinese font, whose name is ukai. ttf,
Http://ftp.tw.debian.org/debian/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_0.1.20060928.orig.tar.gz
# Tar zxvf ttf-arphic-ukai_0.1.20060928.orig.tar.gz
# Cd ttf-arphic-ukai-0.1.20060928/
# Cp ukai. ttf/usr/share/fonts/ukai. ttf
After the installation is complete, note the following two required changes in "Settings.
General-> RRDTool application version changed to 1.2.x. The default value is 1.0.x. the image may not be displayed normally.
Path-> the default font path of RRDTool is changed to the file path of ukai. ttf installed above, such as/usr/share/fonts/ukai. ttf.
5. snmp file settings of the monitored host
Snmp must be configured for the Cacti Chinese version of the monitored host. (Thank you for your reminder)
Vi/etc/snmp/snmpd. conf
1. Change
Com2sec notConfigUser default public
Change
Com2sec notConfigUser 127.0.0.1 public
2. Change
Access notConfigGroup "" any noauth exact systemview none
Change
Access notConfigGroup "" any noauth exact all none
3. # view all supported ded. 1 80
Remove the # comment above.
Save and exit
- Cacti plug-in added for linux promotion application monitoring
- Open-Source Monitoring Project Nagios derivative new project ICINGA is more community-oriented
- O & M monitoring Nagios serialization 3: deploying and configuring the Nagios Service
- Cacti monitors compilation, installation, and localization of linux snmp and rrdtool
- O & M monitoring Nagios serialization 2: deploying an apache server