centos5.4 cacti安装使用

一.安装LAMP环境

yum install php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-libs net-snmp-utils php-pdo perl-DBD-MySQL
二.下载cacti软件包和rrdtool
admin ,输入用户名与密码,点击 点击安装使用中遇到问题:
<span lang="EN-US" style="padding: 0px; margin: 0px; color: rgb(85, 85, 85); font-family: 宋体, "Arial Narrow', arial, serif; font-size: medium; line-height: 32px; background-color: rgb(255, 255, 255);"> 不出图可能是rrd版本的问题,查看apache错误日志
ERROR: I don't understand ':54:25 To 2013/04/19 10:54:25\c' in command: 'COMMENT:From 2013/04/18 10:54:25 To 2013/04/19 10:54:25\c'
重新下载安装rrd
还有可能是rra目录权限问题,前期可以直接给777

<span lang="EN-US" style="padding: 0px; margin: 0px; color: rgb(85, 85, 85); font-family: 宋体, "Arial Narrow', arial, serif; font-size: medium; line-height: 32px; background-color: rgb(255, 255, 255);"> 五、客户端配置
<span lang="EN-US" style="padding: 0px; margin: 0px; color: rgb(85, 85, 85); font-family: 宋体, "Arial Narrow', arial, serif; font-size: medium; line-height: 32px; background-color: rgb(255, 255, 255);">
1.yum -y install net-snmp net-snmp-devel
2.vi /etc/snmp/snmpd.conf(修改snmp配置文件中的三个参数)
将下边这行中的default改为cacti)服务器的地址
com2secnotConfigUser default public
com2secnotConfigUser cacti_ip public
将下边这行中的systemview改为all
access notConfigGroup "" any noauth exact systemview none none
access notConfigGroup "" any noauth exact all none none
将下边这行的注释“#”号去掉
#view all included .1 80
修改防火墙
添加-A INPUT -p udp -m udp --dport 161 -j ACCEPT
service iptables restart
七、添加客户端
点console--Device--Add
desription 标识
hostname ip地址
host template 选ucd/net SNMP Host
snmp version 选version 2
点create,会出现如下结果
SNMP Information
System::DEC:06:19:48:22:GMT:2011:X86_64
Uptime: 26266941 (3 days, 0 hours, 57 minutes)
Hostname: localhost.localdomain
Location: Unknown (edit /etc/snmp/snmpd.conf)
Contact: Root root@localhost (configure /etc/snmp/snmp.local.conf)
*Create Graphs for this Host
*Data Source List
*Graph List
点 Create Graphs for this Host
选择一些需要监控的选项后保存就可以了



你可能感兴趣的:(cacti安装)