RHEL 5.2 cacti Installation notes

Source: Internet
Author: User

Cacti in English means Cactus, but in the Open Source world it also has another meaning-NOC monitoring software, in addition to its own powerful functions, it can also install many plug-ins to achieve expansion. In many places in China, it may still be using expensive NOC software for monitoring, so cacti fans can rest very comfortably.

After successfully installing cacti, I took a note of all the installation files required.

1. Install rrdtools
Modify the build_dir directory in rrdinstall. Sh under the rrdtool-1.2.23 for your compilation directory
Run rrdinstall. Sh

2. install and configure net-snmp
After performing 1. install-net-snmp.sh
Modify snmpd. conf (modify Community, host that allows SNMP data capturing, and data capturing range ).
/Usr/local/net-snmp/sbin/snmpd // start the SNMP service
VI/etc/rc. d/rc. Local
Add/usr/local/net-snmp/sbin/snmpd to RC. Local to start the SNMP service.

3. MySQL
Create a database cactidb
Execute cacti. SQL
Create a MySQL user name and password cacti @ localhost cacti

4. install and configure cacti
edit <2. install-cacti.sh>
modify your installation directory cacti_path =/www/cacti-0.8.7
execute sh 2. install-cacti.sh & lt; BR & gt; editing & lt; 3. install-cacti-userpower.sh>
execute SH 3. install-cacti-userpower.sh
edit/usr/local/Apache/htdocs/cacti/include/config. php
$ database_type = "MySQL";
$ database_default = "cacti";
$ database_hostname = "localhost ";
$ database_username = "cactiuser";
$ databas E_password = "cacti";
edit/etc/crontab, add one
*/5 *****/usr/local/bin/PHP/usr/local/Apache/htdocs/cacti/poller. php>/dev/null 2> & 1
note: the first execution of poller. use the cacti user in PHP; otherwise, the generated RRD file cacti has no write permission.

5. Install cactid
Edit install-Cactid.sh
Execute sh 4. install-Cactid.sh
(Find MySQL. h, find/-name MySQL. h, if there is no rpm-IVH MySQL-devel-xxx.i386.rpm, rhel5.2 MySQL is mysql-devel-5.0.22-2.1.i386.rpm under the Server Directory of the 3rd disks of 5 disks)/usr/local/cactid. conf // modify the cactid configuration file
Db_host 127.0.0.1
Db_database cacti
Db_user cactiuser
Db_pass cacti

All required installation files

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.