2012年7月30日 星期一

Install SNMP on Centos

# yum -y install net-snmp net-snmp-utils

#vi /etc/snmp/snmpd.conf
# com2sec notConfigUser default public
# group notConfigGroup v1 notConfigUser
# group notConfigGroup v2c notConfigUser
# 再加入 group 存取設定
com2sec local localhost public
com2sec mynetwork xxx.xxx.xxx.0/24 public
group MyRWGroup any local
group MyROGroup any mynetwork
找以下設定取消註解#
view all included .1 80
access MyROGroup "" any noauth 0 all none none
access MyRWGroup "" any noauth 0 all all all
disk / 10000
# chkconfig snmpd on
# service snmpd start

沒有留言: