THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
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.

 



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (2)
Article Rating (2 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
SNMP Trap - How To Send A Test Trap
Viewed 248793 times since Fri, Apr 1, 2016
SSL Certificate does not validate properly
Viewed 7848 times since Wed, Jan 20, 2021
Nagios XI - SNMP Traps with NXTI
Viewed 6720 times since Tue, Sep 18, 2018
Performance Graphs Showing Data during Host Down Time Periods
Viewed 5003 times since Tue, Dec 7, 2021
Nagios XI - Receiving SNMP Traps From Nagios Network Analyzer
Viewed 9769 times since Mon, Oct 17, 2016
SNMP Traps - Nagios XI and NSTI - MIB Uploading
Viewed 8840 times since Tue, Apr 28, 2015
Nagios XI - SNMPTT Service generates Cannot find module errors
Viewed 8744 times since Sun, Apr 9, 2017
Upgrading EOL Operating Systems on a Nagios System
Viewed 7534 times since Thu, Apr 29, 2021
SNMP Trap - Inbound UDP Traffic
Viewed 31609 times since Tue, Mar 24, 2015
Nagios XI - SNMP Trap Hardening
Viewed 16033 times since Tue, Nov 6, 2018