Redhat EL 5.3
上安装
Cacti(4)-
编译
安装
rrdtool
及安装配置
snmp
Linux
下安装
Cacti
实现网络监控
由于博客字符
8
万限制,所以分开
5
部分上传!
请看
Redhat EL 5.3
上安装
Cacti(1-5)
第四部分:
编译
安装
rrdtool
及安装配置
snmp
编译
安装
rrdtools
# wget
ftp://ftp.pucpr.br/rrdtool/rrdtool-1.2.27.tar.gz
#
tar
zxvf
rrdtool-1.2.27.tar
.gz
#
cd
rrdtool-1.2.27
#
./configure
--prefix=/usr/local/rrdtool
#
make
&&
make
install
注意:
rrdtools
编译的时候,貌似挺容易出错的,可我装了两次也没遇到!等遇到时再总结吧
~~~
呵呵,网上的解决方法也挺多,但遇不到错误我也没办法去验证,愁:
(
安装
SNMP
#
rpm -qa|grep net-snmp
//
查
看系
统
中
是
否已
经
装有所需的
软
件
以
下安装
snmp
所需的
rpm
安装包在
RedHat
EL5.3
安装光
盘
都有
。
net-snmp-libs-5.3.2.2-5.el5.i386
net-snmp-5.3.2.2-5.el5.i386
net-snmp-devel-5.3.2.2-5.el5.i386
net-snmp-utils-5.3.2.2-5.el5.i386
# rpm -ivh net-snmp-* //
这时安装应该会失败
这四个都要安装上才可以,安装时会因为
rpm
包
的依存
关
系安装
失败,解决方法:我是把依存的
rpm
全都给装上了
;
当然也可以
使用
―nodeps
参数
强制安装(这种方法我暂时没试过,不知是否会有后遗症)
。
存在依存关系的
rpm
包如下:
elfutils-devel-0.137-3.el5.i386
elfutils-devel-static-0.137-3.el5.i386
beecrypt-4.1.2-10.1.1.i386
beecrypt-devel-4.1.2-10.1.1.i386
# rpm -ivh elfutils-devel-*
# rpm -ivh beecrypt-*
# rpm -ivh net-snmp-5.3.2.2-5.el5.i386.rpm
# rpm -ivh net-snmp-devel-5.3.2.2-5.el5.i386.rpm
# rpm -ivh net-snmp-utils-5.3.2.2-5.el5.i386.rpm
大概安装方法就是这样,安装过的包就不用再装了!上次在
redhat EL5
安装时还装了
lm_sensors
这个
rpm
的包。这次
EL5.3
上貌似有了,所以没要求装。反正宗旨就是差哪装哪,嘿嘿
~~~~
配置
SNMP
#vi /etc/snmp/snmpd.conf
com2sec notConfigUser default public
改
为
:com2sec notConfigUser 127.0.0.1 public
access notConfigGroup "" any noauth exact systemview none none
改
为
:access notConfigGroup "" any noauth exact all none none
#view all included .1 80
将前面的
#
注
释
去掉。
保存退出
:wq
4.
重新启
动
snmp
服
务
#
service snmpd restart