1

我在 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.

建议?

4

2 回答 2

1

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

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

于 2016-03-23T10:59:43.967 回答
0

提供的解决方案也适用SNMPTTOracle Linux 7.5

yum install net-snmp-perl

为我工作。

于 2018-07-19T12:50:18.403 回答