net-snmp 配置

来源:互联网 发布:灵族女捏脸数据图 编辑:程序博客网 时间:2024/05/21 03:56
1、安装net-snmp
yum install net-snmp net-snmp-libs net-snmp-utils  -y
2、配置net-snmp
com2sec notConfigUser 127.0.0.1       publicgroup   notConfigGroup v1           notConfigUsergroup   notConfigGroup v2c           notConfigUserview    systemview    included   .1.3.6.1.2.1view    systemview    included   .1.3.6.1.2.1.25.1access  notConfigGroup ""      any       noauth    exact  systemview none noneview 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 

0 0
原创粉丝点击