Hi,
When attempting to restart the snmptt.service it fails with the following error:
[root@HOSTNAME username]# systemctl status snmptt.service -l
● snmptt.service - SNMP Trap Translator (SNMPTT)
Loaded: loaded (/usr/lib/systemd/system/snmptt.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-12-13 03:00:11 GMT; 5h 9min ago
Process: 14888 ExecStart=/usr/sbin/snmptt --daemon (code=exited, status=2)
Dec 13 03:00:11 HOSTNAME snmptt[14888]: Can't locate SNMP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 14) line 1.
Dec 13 03:00:11 HOSTNAME snmptt[14888]: died at /usr/sbin/snmptt line 426.
Dec 13 03:00:11 HOSTNAME snmptt[14888]: Could not load the Perl module SNMP! If net_snmp_perl_enable is
Dec 13 03:00:11 HOSTNAME snmptt[14888]: enabled then the SNMP module is required. Please see snmptt.html
Dec 13 03:00:11 HOSTNAME snmptt[14888]: for system requirements. Note: SNMPTT uses the Net-SNMP package's
Dec 13 03:00:11 HOSTNAME snmptt[14888]: SNMP module, NOT the CPAN Net::SNMP module!
Dec 13 03:00:11 HOSTNAME systemd[1]: snmptt.service: control process exited, code=exited status=2
Dec 13 03:00:11 HOSTNAME systemd[1]: Failed to start SNMP Trap Translator (SNMPTT).
Dec 13 03:00:11 HOSTNAME systemd[1]: Unit snmptt.service entered failed state.
Dec 13 03:00:11 HOSTNAME systemd[1]: snmptt.service failed.
[root@HOSTNAME username]#
Any ideas please?
Regards,
Rob
snmptt.service fails to start
-
kyang
Re: snmptt.service fails to start
If you're running CentOS/RHEL.
Try this command.
Let us know if that worked for you.
Try this command.
Code: Select all
yum install net-snmp-perlRe: snmptt.service fails to start
We are running RHEL 7.4
Loaded plugins: product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink
epel
nagios-base
nagiosxi-deps
rhel-7-server-rpms
No package net-snmp-perl available.
Error: Nothing to do
Loaded plugins: product-id, search-disabled-repos, subscription-manager
epel/x86_64/metalink
epel
nagios-base
nagiosxi-deps
rhel-7-server-rpms
No package net-snmp-perl available.
Error: Nothing to do
Re: snmptt.service fails to start
It appears that the net-snmp-5.7.3.tar.gz wasn't available in any of the listed repos.
By following the install instructions at http://www.net-snmp.org/docs/readmefiles.html
So I did:
cd /tmp
wget https://sourceforge.net/projects/net-sn ... 7.3.tar.gz
tar xzf net-snmp-5.7.3.tar.gz
./configure
make
make install
systemctl restart snmptt.service
systemctl status snmptt.service
snmptt service is now running
Rob
By following the install instructions at http://www.net-snmp.org/docs/readmefiles.html
So I did:
cd /tmp
wget https://sourceforge.net/projects/net-sn ... 7.3.tar.gz
tar xzf net-snmp-5.7.3.tar.gz
./configure
make
make install
systemctl restart snmptt.service
systemctl status snmptt.service
snmptt service is now running
Rob
-
kyang
Re: snmptt.service fails to start
Glad to hear you got it working! I'll be closing this thread!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!
If you have any more questions, feel free to create another thread.
Thanks for using the Nagios Support Forum!