In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "Cacti configuration implementation and installation process". In daily operation, I believe many people have doubts about the implementation and installation process of Cacti configuration. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "Cacti configuration implementation and installation process". Next, please follow the editor to study!
Using cacti requires some knowledge of using net-snmp and rrdtool. Today we will be Catci configuration commands, hope to help you install and update the CentOScacti system.
Catci configuration:
# mysqlcacti-uroot-p # chown-Rcactiuserrra/log/
# viinclude/config.php
$database_type= "mysql"
$database_default= "cacti"
$database_hostname= "localhost"
$database_username= "cactiuser"
$database_password= "cactiuser"
$database_port= "3306"
The Cacti configuration allows the system to fetch snmp data every five minutes:
# crontab-ucactiuser-e// pay attention to running crontab with the account cactiuser that you just created
* / 5****/usr/local/php/bin/php/usr/local/www/htdocs/cacti/poller.php > / dev/null2 > & 1
Or: vi/etc/crontab, add:
* / 5****cactiuser/usr/local/php/bin/php/usr/local/www/htdocs/cacti/poller.php > / dev/null2 > & 1
(when using spine, you can change it to once a minute.)
* / usr/local/php/bin/php/usr/local/www/htdocs/cacti/poller.php > / dev/null2 > & 1
Installation of pluginArchitecture
Wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7e-PA-v2.6.zip
Unzipcacti-plugin-0.8.7e-PA-v2.6.zip
Enter the decompression directory and import the database:
Mysqlcacti cpcacti-plugin-0.8.7e-PA-v2.6.diff/usr/local/www/htdocs/cacti/
Cd/usr/local/www/htdocs/cacti/
Patch-p1-N Note: if php is installed with the system itself, if you patch it in this way, you will get an error, then install it as follows:
Read the readme.txt of the same level directory carefully: it suggests that if you install it through the rpm package, overwrite the files in files directly. I was depressed. The reason why I said in my last article that I wanted to update the installed cacti to the * version was for fear of such version inconsistency, but it still happened. * still covered to solve the problem.
Rsync-avz./files-0.8.7e/*/var/www/html/cacti/viinclude/global.php
Change $config ['url_path'] =' /'; change to: $config ['url_path'] =' / cacti/'
Settings installation
Download: wgetwget http://docs.cacti.net/_media/plugin:settings-latest.tgzcp-rsettings-0.6//usr/local/www/htdocs/cacti/plugins/settings#viinclude/global.php
Add the following after $plugins=array ();
$plugins [] = 'settings'
At this point, the study on the "Cacti configuration implementation and installation process" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.