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 install snmp support tools in CentOS cacti system environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to install snmp support tools in the CentOS cacti system environment, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

System environment

OS:CentOS5.4 DataBase:MySQL5.0 PHP Apache net-snmp

Install CentOS MySQL in the environment required to deploy CentOS cacti

Yum install mysql yum install mysql-server install apache yum install httpd install php yum install php yum install php-mysql

Start various services and add to the startup list

Service httpd start service mysqld start # * secondary initialization initializes MySQL's data dictionary chkconfig httpd on chkconfig mysqld on

Since CentOS cacti requires the support of a large number of other libraries to run, we also need to install some:

Zib: yum install zib libpng: yum install libpng freetype: yum install freetype jpeg: yum install libjpeg fontconfig: yum install fontconfig gd: yum install gd libxml: yum install libxml2

In addition, you also need the support of rrdtool: download: http://www.express.org/~wrl/rrdtool/ here I download the corresponding version of centos5.4, readers please download corresponding system version

Wget http://www.express.org/~wrl/rrdtool/rrdtool-1.2.30-1.el5.wrl.x86_64.rpm wget http://www.express.org/~wrl/rrdtool/rrdtool-perl-1.2.30-1.el5.wrl.x86_64.rpm rpm-ivh rrdtool-1.2.30-1.el5.wrl.x86_64.rpm rrdtool-perl-1.2.30-1.el5.wrl.x86_64.rpm

Install support tools for snmp

Yum install net-snmp yum install net-snmp-utils

Install CentOS cacti download CentOS cacti,cacit official website: http://www.cacti.net/download_cacti.php wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz extract and put it in the apache documentation directory (/ var/www/html is the default apache website directory)

Tar-xf cacti-0.8.7e.tar.gz mv cacti-0.8.7e / var/www/html/cacti

Edit the CentOS cacti configuration file, where you configure the user name, password, port, etc., of the linked MySQL service.

Cd / var/www/html vi cacti/include/config.php $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "cacti"; $database_port = "3306"; $config ['url_path'] =' / cacti/'

Add a user for CentOS cacti and add a cron task:

Useradd cacti su-cacti crontab-e * / 5 * cacti php / var/www/html/cacti/poller.php > / dev/null 2 > & 1

Change the group to which the CentOS cacti site directory belongs to CentOS cacti:

Su-root chgrp-R cacti / var/www/html/cacti

The owners of two additional directories need to be modified to give cacti write access:

Chown-R cacti/ var/www/html/cacti/rra chown-R cacti/ var/www/html/cacti/log

Configuration database

Create CentOS cacti database mysqladmin-- user=root create cacti import cacit.sql mysql cacti

< /var/www/html/cacti/cacti.sql给CentOS cacti用户授权 mysql -uroot mysql>

Use cacti mysql > grant all on cacti.* to cacti@localhost identified by 'cacti'; mysql > flush privileges; mysql > exit

Complete the installation of CentOS cacti in the installation machine call page: http://localhost/cacti after clicking next, it will appear

The above is how to install snmp support tools in CentOS cacti system environment. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report