Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use cacti simple configuration documentation in linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article is to share with you the content of the simple configuration document on how to use cacti in linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

I. Cacti installation and deployment

This platform is built in the environment of lamp, the first thing is to make sure that Apache,MySQL,php. Installation succeeded. I won't write that here.

1. Cacti server-side installation

Downloading cacti-related software on the official website requires a total of three software. the download address is as follows:

Http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz http://www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz 2. Install LAMP system environment: the yum installation method is used here, and the installation command:

Yum install httpd mysql mysql-server php php-mysql php-json php-pdo-y

3. Install the rrdtool acquisition tool

Before installing rrdtool, you need to install the appropriate lib library, as follows:

Yum install cairo-devel libxml2-devel pango pango-devel-y tar xzf rrdtool-1.4.5.tar.gz; cd rrdtool-1.4.5;. / configure-- prefix=/usr/local/rrdtool/ make & & make install; ln-s / usr/local/rrdtool/bin/* / usr/local/bin/ 4, install SNMP service yum install net-snmp net-snmp-utils-y 5, install caction main program

Tar xzf cacti-0.8.8a.tar.gz & & mv cacti-0.8.8a / var/www/html/cacti/

6. Create a cacti database

Mysql-uroot-p enter your password to enter the database, and then create the database: (here is the password for the previous lamp database) create database cacti; creates the database grant all on cacti.* tocacti@'localhost' identified by "123456"; create a user and authorize flush privileges; to refresh

7. After mysql is configured, import the cacti data into the cacti database

Mysql-ucacti-p123456 cacti > / tmp/cacti_rrdtool.log 2 > & 1

: wq save exit!

Crontab-l view the plan.

10. After installation of Cacti, test access

The following interface appears when accessed through http://ip/cacti/, and click NEXT next.

I have directly completed the installation here, and the login is successful.

Summary of the problem:

I have red here, that is, the path has not been found. Looked into a lot of reasons. And read the config.log error log. Query to missing plug-in:

I installed: gcc

Yum install gcc-y

Problem solved.

There is also when the source code installation executes the make command. Packages that need to be installed. The above version of msql_5.5 uses cmake.

When performing an make error, it is checked that the dependent packet is not fully installed. After the installation is complete, the problem is resolved.

Thank you for reading! This is the end of this article on "how to use cacti simple configuration documentation in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report