Redhat下怎样安装Cacti

系统 Linux
在Redhat下Cacti安装配置:cacti是一套开源的网络监控工具,基于rrdtool的良好绘图功能,可以完美的监控主机的状态和负载情况,添加相应的模板后,可以用来监控apache服务器和mysql服务器的运行状态。本文讲述的是如何在Redhat下Cacti安装配置

Redhat Cacti安装配置

  一、软件包

  a) cacti-0.8.7g.tar.gz

  b) net-snmp-5.2.6.tar.gz

  c) rrdtool-1.4.5.tar.gz

  二、安装步骤

  a) 首先安装配置好LAMP环境

  b) Tar zxvf rrdtool-1.4.5.tar.gz

  c) ./configure --prefix=/usr/local/rrdtool --disable-tcl

  d) ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

  e) 执行rrdtool看是否安装正确

  f) Tar zxvf net-snmp-5.2.6.tar.gz

  g) ./configure --prefix=/usr/local/net-snmp --enable-developer

  h) ln -s /usr/local/net-snmp/bin/* /usr/local/bin

  i) cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf

  j) /usr/local/net-snmp/sbin/snmpd //启动snmpd

  k) Tar zxvf cacti-0.8.7g.tar.gz

  l) Mv cacti-0.8.7g /usr/local/apache/htdocs/cacti

  m) vi /usr/local/apache/htdocs/cacti/include/config.php

  n) vi /usr/local/apache/htdocs/cacti/include/global.php

  1.   $database_type = "mysql";  
  2.  
  3.   $database_default = "cacti";  
  4.  
  5.   $database_hostname = "localhost";  
  6.  
  7.   $database_username = "cacti";  
  8.  
  9.   $database_password = "cacti";  
  10.  

  o) useradd cacti

  p) groupadd cacti

  q) chown –R cacti:cacti /usr/local/apache/htdocs/cacti/rra

  r) chown –R cacti:cacti /usr/local/apache/htdocs/cacti

  s) /usr/local/mysql/bin/mysql –uroot –p

  t) Mysql>create database cacti;

  u) Mysql> grant all on cacti.* to cacti@localhost identified by “cacti”;

  v) Mysql>flush privileges;

  w) Cd /usr/local/apache/htdocs/cacti

  x) /usr/local/mysql/bin/mysql –uroot –p cacti >cacti.sql;

  y) 访问http://localhost/cacti默认用户名admin.密码admin

Cacti/安装   Redhat Cacti安装配置 成功!

Cacti/安装

Cacti/安装   Redhat下怎样安装Cacti就完成喽!

【编辑推荐】

Cacti安装篇

Cacti配置篇

Cacti的安装配置-需求准备

责任编辑:zhaolei 来源: cnblogs
相关推荐

2011-03-29 15:22:31

WindowsCacti

2011-03-29 09:08:47

2011-04-06 10:03:08

2011-03-29 09:08:50

2011-03-25 14:17:48

Ubuntu安装Cacti

2011-02-25 15:38:12

ProftpdRedHat

2011-04-06 10:03:08

Centos5.4Cacti安装

2011-11-08 21:42:18

CACTI 流量监控

2011-04-01 12:22:35

2011-03-25 12:57:13

备份Cacti数据

2011-04-02 14:21:51

Cacti安装

2011-03-25 15:01:43

2009-11-24 14:38:33

kickstart下安

2011-03-31 10:28:40

cactiplugin

2011-03-31 10:21:52

CentosCactishell

2011-03-31 15:06:12

lampcacti

2011-03-25 15:01:45

Cacti安装

2011-03-29 09:08:49

Linux配置Cacti

2011-03-29 09:08:50

Linux配置Cacti

2011-03-28 09:21:08

RedhatNagios
点赞
收藏

51CTO技术栈公众号