AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 393002
Accepted
Lukasz
Lukasz
Asked: 2012-05-27 15:30:25 +0800 CST2012-05-27 15:30:25 +0800 CST 2012-05-27 15:30:25 +0800 CST

SNMPD 启动时没有错误,但没有侦听任何端口?

  • 772

运行 CentOS6 5.7 和 Net-SNMP 5.3.2.2-14 的 HP ProLiant DL360 G7。

我在一个远程站点中有 7 台这样的服务器,它们都运行 CentOS 5.7 和 RHEL 5.7 的混合物,并从 RPM 安装了相同的 Net-SNMP。在一台服务器上,我的 NMS 不断报告它未能连接到 SNMP 服务。我忽略了它,因为它通常会在大约 15 分钟内消失,但今天从早上开始每小时发生 2-3 次。

我修改了 snmpd 启动脚本以记录到文件(默认为 /dev/null)。启动时日志文件中没有错误:

could not open /proc/net/if_inet6
cannot open /proc/net/snmp6 ...
cmaX: listening for subagents on port 25375
cmaX: sent ColdStarts on ports 25376 to 25393
cmaX: subMIB 1 handler has disconnected
NET-SNMP version 5.3.2.2
cmaX: subMIB 2 handler has disconnected
Connection from UDP: [127.0.0.1]:50654
cmaX: subMIB 3 handler has disconnected
Received SNMP packet(s) from UDP: [127.0.0.1]:50654
cmaX: subMIB 5 handler has disconnected

我假设 if_inet6 用于我们不使用的 IPv6。snmpd.conf 如下:

# Following entries were added by HP Insight Management Agents at
#      Tue May 15 10:58:17 CLT 2012
dlmod cmaX /usr/lib64/libcmaX64.so
rwcommunity public 127.0.0.1
rocommunity public 127.0.0.1
rwcommunity 3adRabRu 172.16.37.37
rocommunity 3adRabRu 172.16.37.37
trapcommunity traps
trapsink 172.16.37.37 traps
syscontact Lukasz
syslocation Santiago, Chile
# ---------------------- END --------------------
com2sec rwlocal default public
com2sec rolocal default public
com2sec subnet  default 3adRabRu
group   rwv2c   v2c             rwlocal
group   rov2c   v2c             rolocal
group   rov2c   v2c             subnet
view    all     included        .1
access  rwv2c   ""      any             noauth          exact   all     all     none
access  rov2c   ""      any             noauth          exact   all     none    none

有什么建议么?IP 表已关闭。

centos snmp snmpd
  • 1 1 个回答
  • 7133 Views

1 个回答

  • Voted
  1. Best Answer
    rnxrx
    2012-05-27T15:40:37+08:002012-05-27T15:40:37+08:00

    签出snmpd.conf(5):

      agentaddress [<transport-specifier>:]<transport-address>[,...]
              defines  a  list  of listening addresses, on which to receive incoming 
              SNMP requests.  See the section LISTENING ADDRESSES in the
              snmpd(8) manual page for more information about the format of listening address
    

    所以尝试在 的顶部添加类似这样的内容snmpd.conf:

    #  Listen for connections on all interfaces (both IPv4 *and* IPv6)
    
    agentAddress udp:161,udp6:[::1]:161
    
    • 2

相关问题

  • 如何在 Linux 机器上找到有关硬件的详细信息?

  • 使用 crontab 和 /etc/cron.hourly,daily,weekly 的区别

  • 持续监控许多服务器运行状况的简单方法?

  • Hudson 无法在 tomcat5 中启动

  • CentOS 的依赖挑战

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve