SNMP通信失败

时间:2014-08-11 13:33:49

标签: ubuntu snmp snmpd

我刚刚在ubuntu服务器上设置了SNMP [12.04.4 LTS]进行监控,我已经连续8天没有运气了!我确定我已经安装并正确配置了SNMP,但是当尝试从另一台机器上运行SNMP服务器时,我收到了超时响应。我在我的snmpwalk命令中使用版本2c,我知道我正在使用正确的字符串'public'。两者之间没有防火墙或防火墙规则。这是我的snmpd.conf文件[出于安全原因,我用X的替换了我的origanl]

####### sec.name source               community
com2sec permitted 127.0.0.1             public     # Localhost
com2sec permitted xx xx.xx.xxxx         public     # Home Insight Connection
############### sec.model sec.name
group   roGroup v1      permitted
group   roGroup v2c     permitted

############### incl/excl subtree
view    all     included  .1

############### ctx sec.model sec.level   prefix read write notify

access  roGroup ""  any       noauth      exact  all  none  none

这是我的/ etc / default / snmpd文件

# This file controls the activity of snmpd and snmptrapd

# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export 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'

# snmptrapd control (yes means start daemon).  As of net-snmp version
# 5.0, master agentx support must be enabled in snmpd before snmptrapd
# can be run.  See snmpd.conf(5) for how to do this.
TRAPDRUN=no

# snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'

# create symlink on Debian legacy location to official RFC path
SNMPDCOMPAT=yes

我的IPTABLE规则为空。我甚至没有运气就停止了服务

root@dws411:/etc/default# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

我检查了/ etc /目录中的host.allow和host.deny文件。这两个文件也都是空的。我希望有人可以帮我解决这个问题。我没有想法。

0 个答案:

没有答案