Ubuntu解决不能远程访问snmp协议的

需要远程使用snmp,发现ubuntu9.04上不支持远程访问,google了一下解决办法如下
编辑 /etc/default/snmpd

$sudo vi /etc/default/snmpd 
# This file controls the activity of snmpd and snmptrapd
# MIB directories.  /usr/share/snmp/mibs is the default, but
# including it here avoids some strange problems.
export MIBDIRS=/usr/share/snmp/mibs

# snmpd control (yes means start daemon).
SNMPDRUN=yes

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'

去掉snmpdopts中的127.0.0.1绑定

Tags: ,

星期二, 五月 1st, 2012 服务器

Leave a Reply

1LMooBmUE153Wnd3zDryWvDyXxQudbFxDr