Install cacti on gentoo

Source: Internet
Author: User
Tags rrdtool
Installing cacticacti on gentoo uses the SQL database to save configuration information, uses cron to schedule pollerphp, polls device information through SNMP, and uses rrdtool to store information to rra, then the network management system is displayed in the form of images. The plug-in function can be extended. for example, if cacti is installed on gentoo, the SQL database is used to save the configuration information and cron is used to schedule poller. php: a network management system that uses SNMP to poll device information, uses rrdtool to store information in rra, and then displays information in the form of images. The plug-in function can be expanded. for example, weathermap can draw a beautiful network topology. In the official gentoo portage tree, you can view its information. [Plain] # eix cacti [I] net-analyzer/cacti Available versions: (0.8.7i) 0.8.7i (0.8.8a )~ 0.8.8a (0.8.8b )~ 0.8.8b (0.8.8b-r1 )~ 0.8.8b-r1 (0.8.8b-r2) 0.8.8b-r2 {doc snmp vhosts} Installed versions: 0.8.8b-r2 (0.8.8b-r2) (October 03, 2013) (snmp-doc-vhosts) Homepage: http://www.cacti.net/ Description: Cacti is a complete frontend to rrdtool to install cacti as follows: 0, preparation: Configure php [plain] # vim/etc/php/apache2-php5.4/php. ini modification; date. timezone = date. timezone = "Asia/Shanghai" 1. install [plain] # emerge cacti 2. configure permissions to create a cacti Group and cactiuser [plain] # groupadd cacti # useradd-g cacti-G cron cactiuser [plain] # cd/var/www/localhost/htdocs/cacti # chown-R cactiuser rra/log/this step is very important, if the image is not displayed as a Red Cross, this step is generally not done. 3. create a database [plain] # mysql-u root-p mysql> create database cacti; mysql> grant all on cacti. * to cactiuser @ localhost; mysql> set password for cactiuser @ localhost = password ('cactiuser'); mysql> flush privileges; mysql> use cacti; mysql> source/var/www/localhost/htdocs/cacti. SQL mysql> exit where the cactiuser in password ('cactiuser') is a password and can be set to another string. Cacti. SQL must be of the current version. If it is a previously created cacti database, you must delete it (maybe there is a better way, such as selecting upgrade during web install) and redo it. otherwise, problems may occur. I used the 0.8.7i library during installation, so that the realm permissions in User Managerment could not find the Plugin Management. 4. configure the database connection parameter [plain] # vim include/config. php $ database_type = "mysql"; $ database_default = "cacti"; $ database_hostname = "localhost"; $ database_username = "cactiuser"; $ database_password = "cactiuser "; $ database_password = if you set another password for mysql cactiuser, you need to change it to the previous password. 5. add a line of [plain] */5 *** to the "/etc/crontab" file for the scheduled task to configure poller. php **** Cactiuser/Usr/bin/php/var/www/localhost/htdocs/cacti/poller. php>/dev/null 2> & 1 note that cactiuser must be used here. In some cases, the installation guide says that using apache is incorrect, which will lead to cacti displaying images, but the data is all NaN. In gentoo, the apache user defines/bin/nologin in the/etc/passwd shell, therefore, the apache user does not execute any program (you cannot switch over the user), so it is impossible to get any data, so you can only get NaN. 6. configuring the local SNMP service cacti will monitor the local machine by default. configuring the local SNMP service can simply verify that cacti is correctly installed and running. My net-analyzer/net-snmp version is 5.7.2. the configuration process is as follows: [plain] # cd/etc/snmp # cp snmpd. conf. exsample snmpd. conf # vim snmpd. conf modify agentAddress udp: 127.0.0.1: 161 to agentAddress udp: 161 in view systemonly supported ded. 1.3.6.1.2.1.25.1 add a view systemonly encoded. 1. installation is complete. Access http: // localhost/cacti through a browser. Both the username and password are admin.
Related Article

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.