1、安装net-snmp
yum install net-snmp net-snmp-libs net-snmp-utils -y
2、配置net-snmp
3、测试net-snmp
yum install net-snmp net-snmp-libs net-snmp-utils -y
2、配置net-snmp
com2sec notConfigUser 127.0.0.1 public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1
view systemview included .1.3.6.1.2.1.25.1
access notConfigGroup "" any noauth exact systemview none none
view all included .1 80
3、测试net-snmp
service snmpd start
snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux cronos 2.4.28 #2 SMP ven jan 14 14:12:01 CET 2005 i686
4 设置开机启动
chkconfig snmpd on