Page 1 of 1

snmptt service

Posted: Mon May 24, 2021 6:39 am
by sib
Hi,

Recently i wanted to start using snmp-traps as well as snmp pooling

However what i've notices is that:
snmptt service is up and running:
nagios@lpchim0003[import]> systemctl status snmptt
● snmptt.service - SNMP Trap Translator (SNMPTT)
Loaded: loaded (/usr/lib/systemd/system/snmptt.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2021-05-24 13:34:54 CEST; 2min 35s ago
Process: 11960 ExecStart=/usr/sbin/snmptt --daemon (code=exited, status=0/SUCCESS)
Main PID: 11964 (snmptt)
Tasks: 2
Memory: 15.6M
CGroup: /system.slice/snmptt.service
├─11963 /usr/bin/perl /usr/sbin/snmptt --daemon
└─11964 /usr/bin/perl /usr/sbin/snmptt --daemon

However nagios is reporting it as down (attached image)

How i can fix this so nagios is able to process snmp-traps?

Re: snmptt service

Posted: Mon May 24, 2021 12:05 pm
by gsmith
Hi

Do you have the Enterprise Edition of XI? You can find out by
going to Admin, System Config, License Information.


Thanks

Re: snmptt service

Posted: Tue May 25, 2021 4:18 am
by sib
Yes we do have Entrepries Features with license as per attachement

Re: snmptt service

Posted: Tue May 25, 2021 9:50 am
by gsmith
Hi,

In a shell please run:
snmptrap -v 2c -c public 127.0.0.1 '' linkUp ifDescr s eth0 ifAdminStatus i 1 ifOperStatus i 1

1. Once you execute this command you'll see the following logged in the /var/log/snmptt/snmptt.log file:
Mon Nov 28 11:15:42 2016 .1.3.6.1.6.3.1.1.5.4 Normal "Status Events" localhost - Link up on interface eth0. Admin state: up. Operational state: up


2. Please check the /usr/local/nagios/var/nagios.log file:

[1480298939] Warning: Passive check result was received for service 'SNMP Traps' on host 'localhost', but the service could not be found!
[1480298939] Error: External command failed -> PROCESS_SERVICE_CHECK_RESULT;localhost;SNMP Traps;0;Link up on interface eth0. Admin state: up. Operational state: up / ifDescr (OCTETSTR):eth0 ifAdminStatus (INTEGER):up ifOperStatus (INTEGER):up

Let me know what you see in the logs (both 1 & 2)

Thanks