Home » Categories » Multiple Categories

SNMP traps are now showing UNKNOWN for the sender IP

Issue:

SNMP traps that had previously worked fine are now showing UNKNOWN for the sender IP.

Solution:

There is a bug (https://sourceforge.net/p/snmptt/bugs/46/) in version 1.4.2 of the snmptt daemon that your server is running which is causing it to not forward the traps to Nagios.

If this is the cause of your issue, here is how to fix it.

Edit this file on your server: /usr/sbin/snmptt
change line 3291 from

if ($tempvar[0] =~ /<UNKNOWN>/) {

to

if ($tempvar[0] =~ /UNKNOWN/) {

Save it and restart the snmptt daemon.

After this, the traps should be received and display the IP address.

Another possible solution is to replace $r with $aA - Trap agent IP address.

 

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - SNMP Trap v3 Configuration
Viewed 15203 times since Tue, Nov 13, 2018
Nagios XI - SNMPTT Service generates Cannot find module errors
Viewed 2944 times since Sun, Apr 9, 2017
SSL Certificate does not validate properly
Viewed 599 times since Wed, Jan 20, 2021
SNMP Trap - How To Send A Test Trap
Viewed 151390 times since Fri, Apr 1, 2016
OpenSSL causes issue with check_nrpe plugin with NSClient++
Viewed 555 times since Fri, Apr 30, 2021
Nagios XI - How SNMP Traps Work
Viewed 2672 times since Mon, Nov 18, 2019
Nagios XI - Update Default snmptt.conf EVENT
Viewed 5551 times since Mon, Nov 28, 2016
SNMP Traps - Nagios XI and NSTI - MIB Uploading
Viewed 3547 times since Tue, Apr 28, 2015
Nagios XI - SNMP Traps with NXTI
Viewed 2497 times since Tue, Sep 18, 2018
SNMP Traps - Standard Handler vs Embedded Handler
Viewed 7501 times since Mon, Oct 24, 2016