【发布时间】: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