In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the Ubuntu system to set up cacti monitoring service, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Step 1: installation of ubuntu system and LAMP service
It is recommended to use ubuntuserver system + LAMP service to install cacti software, because the server version of the system + system comes with LAMP services will be more stable.
Ubuntuserver during the installation process, select install the LAMP service.
If you use the desktop version of ubuntu to install, or if the LAMP service is not installed during the installation, you can set up the LAMP server with the following command.
$sudoapt-getinstallapache2 $sudoapt-getinstallmysql-server $sudoapt-getinstallphp5
Step 2: installation of related components
$sudoapt-getinstallphp5-mysqlphp5-cgiphp5-cliphp5-snmpphp-pearsnmpsnmpd $sudoapt-getinstallrrdtool
Step 3: install the cacti program
To cactiuser@localhostidentifiedby'cacti'
Flushprivileges; setpasswordforcactiuser@localhost=password ('cactiuser'); quit
Edit / var/www/cacti/include/config.php, change the password of the database to cactiuser
This is based on the password of the database you set above.
$sudovi/var/www/cacti/include/config.php $database_password= "cactiuser"
Add cactiuser user
$sudouseraddcactiuser-d/var/www/cacti-s/bin/false $sudochown-Rcactiuser/var/www/cacti/rra/var/www/cacti/log
Try this if you can't add it:
# sudochown-hRcactiuser/var/www/cacti/rra/var/www/cacti/log
Edit / etc/crontab, add the following words at the end of the file
$sudovi/etc/crontab * / 5****cactiuserphp5/var/www/cacti/poller.php > / dev/null2 > & 1
If you have already built the LAMP this time, don't add it again.
Edit / etc/php5/apache2/php.ini, add the following words
$sudovi/etc/php5/apache2/php.ini; extension=mysql.so
Edit / etc/php5/cli/php.ini, add the following words
$sudovi/etc/php5/cli/php.ini; extension=mysql.so
Edit / etc/php5/cgi/php.ini, add the following words
$sudovi/etc/php5/cgi/php.ini; extension=mysql.so
Restart the apache2 service
$sudo/etc/init.d/apache2restart
This machine is accessed by http://cacti server IP/cacti. The default user name and password are admin.
UserName:admin Password:admin
After reading the above code, I seem to have to configure a cacti monitoring service on the UbuntuLinux system! I wish you success!
These are all the contents of this article entitled "how to set up cacti Monitoring Service in Ubuntu system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.