Cacti Monitoring (2) formally installed RRDtool cacti

Source: Internet
Author: User
Tags mysql query rrdtool snmp create database

RRDtool is used to do drawing, but still need the support of other installation packages, Cairo-devel Libxml2-devel Pango pango-devel, and so on, here we use the Yum installation is not necessary one by one of the compiled installation, too waste of time

1,rrdtool Installation

[Root@test3 ~]# tar zvxf rrdtool-1.4.4.tar.gz

[Root@test3 ~]# CD rrdtool-1.4.4

[Root@test3 rrdtool-1.4.4]#./configure--prefix=/usr/local/rrdtool

[Root@test3 rrdtool-1.4.4]# make && make install

[Root@test3 rrdtool-1.4.4]# ln-s/usr/local/rrdtool/bin/*/usr/local/bin/

2,SNMP Installation

I'm going to use Yum to install it right here.
[Root@test3 ~]# yum-y Install net-snmp*

[ROOT@TEST3 ~]# Service snmpd restart
stopping snmpd: [OK]
Starting snmpd: [OK]

[Root@test3 ~]# chkconfig snmpd on

3,CACTI Installation

[Root@test3 ~]# MV cacti-0.8.7g/*/usr/local/apache/htdocs/
[Root@test3 ~]# mysql-uroot-p123456
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 2
Server Version:5.1.49-log MySQL Community Server (GPL)

Type ' help, ' or ' \h ' for help. Type ' \c ' to clear the buffer.

mysql> CREATE database cacti; Creating a cacti Database
Query OK, 1 row affected (0.09 sec)

mysql> INSERT INTO Mysql.user (Host,user,password) VALUES (' localhost ', ' cacti ', password (' cacti123 ')); Create cacti user in database
Query OK, 1 row affected, 3 warnings (0.10 sec)

mysql> flush Privileges;
Query OK, 0 rows affected (0.04 sec)

Mysql> Grant all on cacti.* to cacti@ ' localhost ' identified by ' cacti123 ';

Authorize the database cacti to cacti users
Query OK, 0 rows affected (0.03 sec)

[Root@test3 ~]# useradd cactiuser Create a local cacti user

[Root@test3 ~]# cd/usr/local/apache/htdocs/

[Root@test3 htdocs]# mysql-ucacti-pcacti123 Cacti < Cacti.sql

After you pour the data into the database cacti to modify the configuration file to ensure that you can connect to the database cacti

[Root@test3 htdocs]# mysql-ucacti-pcacti123 Cacti < Cacti.sql
[Root@test3 htdocs]# pwd
/usr/local/apache/htdocs
[Root@test3 htdocs]# Vim include/config.php

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/

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.