Centos6.7 Installing cacti Tutorials

Source: Internet
Author: User
Tags snmp

Centos6.7 Installing cacti Tutorials
# link:http://docs.cacti.net/plugins/

Blog Address: Http://www.cnblogs.com/caoguo

I. BASIC Environment installation

[email protected] ~]# yum install-y gcc httpd php php-mysql php-snmp mysql mysql-devel mysql-server Rrdtool[[email protected]~]# Yum install-y net-snmp net-snmp-devel net-snmp-utils wget ntp[[email protected]~]# chkconfig ntpd on[[email protected]~]#/etc/init.d/ntpd Start[[email protected]~]# Sed-i"[email protected];d ate.timezone [email protected] = Asia/[email protected]"/etc/Php.ini[[email protected]~]#/etc/init.d/mysqld Start[[email protected]~]# chkconfig mysqld on[[email protected]~]# Mysql-uroot-penter Password:mysql>CREATE DATABASE Cacti;mysql> Create user [email protected] identified by'Cactiuser'; MySQL> Grant all on cacti.*to [email protected];mysql> Flush Privileges;

Two. Cacti configuration

[Email protected] ~]# cd/usr/local/src/[email protected] src]# tar zxf cacti-0.8. 8f.tar.gz[[email protected] src]# CP-RF cacti-0.8.8f/var/www/html/Cacti[[email protected] src]# CD cacti-0.8. 8f[[email protected] Cacti-0.8.8f]# mysql-h localhost-u cactiuser-p cacti<Cacti.sql[[email protected]~]# VI/var/www/html/cacti/include/config.php<?Php$database_type="MySQL"; $database _default="Cacti"; $database _hostname="localhost"; $database _username="Cactiuser"; $database _password="Cactiuser"; $database _port="3306"; $database _ssl=false;?>[[Email protected]~]# crontab-e*/1* * * * php/var/www/html/cacti/poller.php >/dev/NULL[[Email protected]~]# chkconfig httpd on[[email protected]~]#/etc/init.d/httpd Start

Three. SNMP Service configuration

[Email protected] ~]# cat/etc/snmp/snmpd.conf |grep-v-E'^#|^$'com2sec Notconfiguserdefault        Publicgroup Notconfiggroup v1 notconfigusergroup notconfiggroup v2c notconfiguserview SystemView Included.1.3.6.1.2.1.1view SystemView included.1.3.6.1.2.1.25.1.1view SystemView included.1.3.6.1.2.1.2Access Notconfiggroup""Any noauth exact systemview none nonesyslocation Unknown (Edit/etc/snmp/snmpd.conf) syscontact Root<[email protected]> (configure/etc/snmp/snmp.local.conf) dontlogtcpwrappersconnects yes[[email protected]~]# chkconfig snmpd on[[email protected]~]#/ETC/INIT.D/SNMPD Start

Four. Polling plugin spine Installation

[Email protected] src]# tar zxf cacti-spine-0.8. 8f.tar.gz[[email protected] src]# CD cacti-spine-0.8. 8f[[email protected] Cacti-spine-0.8.8f]#./Configure[[email protected] cacti-spine-0.8.8f]# Make &&Make Install[[email protected] cacti-spine-0.8.8f]# cp-rf/usr/local/spine/etc/spine.conf.dist/etc/Spine.conf[[email protected] cacti-spine-0.8.8f]# Ln-s/usr/local/spine/bin/spine/usr/bin/[[Email protected]~]# vi/etc/spine.conf db_host localhostdb_database cactidb_user cactiuserdb_pass cactiuserdb_port 3306

Five. Cacti expansion plug-in installation

[[email protected] src]# wget http://Docs.cacti.net/_media/plugin:monitor-v1.3-1.tgz-o monitor-v1.3-1.tgz[Email protected] src]# tar zxf monitor-v1.3-1. Tgz[[email protected] src]# MV Monitor/var/www/html/cacti/plugins/[[email protected] src]# wget http://Docs.cacti.net/_media/plugin:clog-v1.7-1.tgz-o clog-v1.7-1.tgz[Email protected] src]# tar zxf clog-v1.7-1. Tgz[[email protected] src]# MV Clog/var/www/html/cacti/plugins/[[email protected] src]# wget http://Docs.cacti.net/_media/plugin:settings-v0.71-1.tgz-o settings-v0.71-1.tgz[Email protected] src]# tar zxf settings-v0. in-1. Tgz[[email protected] src]# MV Settings/var/www/html/cacti/plugins/[[email protected] src]# wget http://Docs.cacti.net/_media/plugin:thold-v0.5.0.tgz-o thold-v0.5.0.tgz[Email protected] src]# tar zxf thold-v0.5.0. Tgz[[email protected] src]# mv Thold/var/www/html/cacti/plugins/

End of installation!!!

Centos6.7 Installing cacti Tutorials

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.