Deployment of cacti monitoring software

Source: Internet
Author: User

Install the cacti server and the controlled side

First, install two kits on the tested end.

Yum-y install lm_sensors net-snmp

Modify the configuration SNMP. conf file in VIM/etc/snmp. conf.

Add:

Com2sec notconfiguser 192.168.1.2 public

Access notconfiggroup "" any noauth exact all none

View All supported ded. 1 80

/Etc/init. d/snmpd restart

Chkconfig snmpd on

The configured, and ,,,

Netstat-anpt | grep SNMP

Port 161 is enabled ..

 

 

 

Configuration method of the monitored end on ipvs:

DNS points to the IP address of the monitored end

On server2008, click "function"> "add function"> install the SNMP service.

CMD open service. msc service find snmpservice this service click Properties -- "security" -- add public read-only to the community

Add -- IP address of the master monitoring end: 192.168.1.2, and then confirm .. Restart the service.

The cmd window natstat-An 161 is also started;

It is best to set an inbound rule to allow port 161.

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/72/wKioL1RRn_ixW0ZaAAJg8PEqVzs489.jpg "Title =" aa.jpg "alt =" wkiol1rrn_ixw0zaaajg8peqvzs489.jpg "/>

 

 

 

Master monitoring configuration: Change the host name. Hsotname hujianli

Vim/etc/sysconfig/Network

Permanent changes (restart required)

Change the IP address to 192.168.1.2.

GW 192.168.1.1

Dns1 192.168.1.2

Modify the host file. Run the vim/etc/hosts command to check whether the IP address can be resolved.

Install the monitoring compiling environment:

Yum-y install lm_sensors net-snmpnet-utils GCC libxm2_devel pange-devel libart_lpgl-devel

Start the SNMP service

/Etc/init. d/snmpd restart

Chkconfig snmpd on

Install lamp Platform

Yum-y install HTTP * MySQL * PHP *

 

Modify httpd configurations

Vim/etc/httpd/CONF/httpd. conf

Add a VM.

 

 

 

 

 

Do not start HTTP

 

Decompress cacti

Tar zxvf cacti-0.8.7b-cn-utf8.tar.gz

Ls

Cp-prf cacti-0.8.7b-cn-utf8/var/www/html/cacti

Service httpd restart

Chkconfig httpd on

Service mysqld restart

Chkconfig mysqld on

Ls

Decompress the round-robin Database: rrdtool

Tar zxvf rrdtool-1.2.27.tar.gz

CD rrdtool-1.2.27

./Configure -- prefix =/usr/local/; Make; make install

 

User who initializes MySQL

 

 

Useradd-m-S/sbin/nologin cactiuser

Passwd cactiuser

123. com

Chown-r cactiuser. cactiuser/var/www/html/cacti/RRA/var/www/html/cacti/log

 

Ls-LH/var/www/html/cacti/view the modified home directory;

Mysql-u Root

Create a cacti Database

Create Database cactidb default characterset utf8;

 

Grant all on cactidb. * [email protected] identified by '20140901 ';

Improve cactiuser permissions. Escalate to local highest permission

Quit exit

 

 

Set cacti. Import SQL into the database

Mysql-u cactiuser-P cactidb </var/www/html/cacti. SQL

Vim/var/www/html/cacti/include/config. php

Modify

Database_default = "cactidb ";

Database_password = "123456 ";

It is best to install a Chinese support package

Yum-y groupinstall "Chinese-support"

Now you can open the Firefox browser

Http: // 192.168.1.2/install

 

The password for the First Login is admin.

It is best to enter Admin to change the password again.


This article is from the "disconnected man in Tianya" blog and will not be reproduced!

Deployment of cacti monitoring software

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.