【问题标题】:SNMPTT and perl snmp module troubleshootingSNMPTT 和 perl snmp 模块故障排除
【发布时间】:2016-03-23 09:00:48
【问题描述】:

我在 centos6.7 上,我需要安装 snmptt 以获取所有 SNMP 陷阱并将它们登录到 Nagios。我昨天让它工作了,但今天,不一样的故事......

我运行了yum install perl-Net-SNMP 命令,它告诉我这个包已经安装了(来自epel) 我在 snmptt.ini 上启用了该模块,现在,当我尝试运行它时,我收到一条失败消息:

root@SLINUX01:[~]$service snmptt restart
Stopping snmptt:                                           [FAILED]
Starting snmptt: Can't locate SNMP.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at (eval 12) line 1.

Could not load the Perl module SNMP!  If net_snmp_perl_enable is
enabled then the SNMP module is required.  Please see snmptt.html
for system requirements.  Note:  SNMPTT uses the Net-SNMP package's
SNMP module, NOT the CPAN Net::SNMP module!

died at /usr/sbin/snmptt line 426.

建议?

【问题讨论】:

  • 看起来不像是编程问题。好像是关于网络管理的问题。

标签: perl unix snmp net-snmp snmp-trap


【解决方案1】:

找到解决方案:只需安装一个不同的包:

yum install net-snmp-perl =/= yum install perl-Net-SNMP

【讨论】:

    【解决方案2】:

    提供的解决方案也适用于 Oracle Linux 7.5 上的 SNMPTT。

    yum install net-snmp-perl
    

    为我工作。

    【讨论】:

      猜你喜欢
      • 2020-07-16
      • 2016-06-18
      • 1970-01-01
      • 2013-07-15
      • 2010-11-30
      • 2021-09-11
      • 2012-02-18
      • 2011-03-07
      • 1970-01-01
      相关资源
      最近更新 更多