cacti 流水帐安装
cacti 安装还是很简单的。。我也懒得自己整理个过程了。。反正就是看了下面的就知道怎么装了。。。 我就不梳理了首先看cacti 官方的安装教程:
Install and Configure Cacti
[*] Extract the distribution tarball.
shell> tar xzvf cacti-version.tar.gz
[*] Create the MySQL database:
shell> mysqladmin --user=root create cacti
[*] Import the default cacti database:
shell> mysql cacti < cacti.sql
[*] Optional: Create a MySQL username and password for Cacti.
shell> mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
mysql> flush privileges;
[*] Edit include/config.php and specify the database type, name, host, user and password for your Cacti configuration.
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";
[*] Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.
shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
[*] Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
[*] Point your web browser to:
http://your-server/cacti/
Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.
装完以后呢。。 访问cacti 的时候就会出现找不到 rrdtool路径的问题,那么我们就这样:
一、使用yum安装:
在 /etc/yum.repos.d/下面新建dag.repo文件在文件中输入源地址:
# cat dag.repo
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
#yum -y install rrdtool
这样就可以完成RRDTool安装……
同样。那个net-snmp 也是 这样安装。然后呢还不行,还要记得安装net-snmp-utils
好了。。。完成了。。
就那么简单
页:
[1]