snmptt service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

snmptt service

Post 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?
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: snmptt service

Post by gsmith »

Hi

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


Thanks
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: snmptt service

Post by sib »

Yes we do have Entrepries Features with license as per attachement
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: snmptt service

Post 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
Locked