Configure httpd server and test Cacti Chinese Version

Source: Internet
Author: User
Tags rrdtool snmp

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

  1. Cacti plug-in added for linux promotion application monitoring
  2. Open-Source Monitoring Project Nagios derivative new project ICINGA is more community-oriented
  3. O & M monitoring Nagios serialization 3: deploying and configuring the Nagios Service
  4. Cacti monitors compilation, installation, and localization of linux snmp and rrdtool
  5. O & M monitoring Nagios serialization 2: deploying an apache server

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.