hq8501 发表于 2019-1-11 07:49:10

CACTI监控系统配置过程

  实验环境:Centos 6.2
  serverA(192.168.56.157) ,serverB(192.168.56.158),serverA作为服务器。
  一:在serverA上安装snmp相关服务。
http://blog.运维网.com/attachment/201212/152314695.png
  修改A/etc/snmp/snmpd.conf
  将default修改为127.0.0.1,如下图:
http://blog.运维网.com/attachment/201212/150749993.png
  将其中62行的systemview改为all即可,并启用85行:view all included .1 80,如下图:
http://blog.运维网.com/attachment/201212/150811685.png
http://blog.运维网.com/attachment/201212/150830755.png
  二:在serverA上安装数据库以及web平台,安装下列软件。
http://blog.运维网.com/attachment/201212/150915604.png
  三:安装cacti,rrdtool
  检查并解决相关的依赖包
http://blog.运维网.com/attachment/201212/153200326.png
  1,安装rrdtool
http://blog.运维网.com/attachment/201212/153250970.png
http://blog.运维网.com/attachment/201212/153305141.png
http://blog.运维网.com/attachment/201212/153421676.png
  2,安装cacti
  a,解压软件
http://blog.运维网.com/attachment/201212/155727897.png
http://blog.运维网.com/attachment/201212/155736845.png
  b,创建用户cactiuser,更改文件属主,属组。
useradd cactiuser
chown -R cactiuser:cactiuser cacti/rra cacti/log

  c,设置监视数据库
http://blog.运维网.com/attachment/201212/155745715.png
  5,导入数据库表
http://blog.运维网.com/attachment/201212/155754600.png
  6,修改 cacti/include/config.php
http://blog.运维网.com/attachment/201212/160259904.png
  四:浏览器访问http://192.168.56.157/cacti
http://blog.运维网.com/attachment/201212/155805149.png
   五:添加serverB及其他需要监控的机器




页: [1]
查看完整版本: CACTI监控系统配置过程