All Apps and Add-ons

SNMP Modular Input: Why do I see no data when I search for sourcetype=SNMP_TA?

travisprice
New Member

I am trying to receive SNMP traps from a Cisco Wireless LAN Controller. I installed the SNMP_TA app, added a MIB file (SNMPv2-MIB) from Cisco, and originally setup using port 162. After saving I searched for " " and saw the following message:

"ERROR ExecProcessor - message from "python /opt/splunkinstall/splunk/etc/apps/snmp_ta/bin/snmp.py" Failed to register transport and run dispatcher: bind() for ('localhost', 162) failed: [Errno 13] Permission denied snmp_stanza:snmp://XXXXXX".  

I then added aN iptables rule:

iptables -t nat -A PREROUTING -i eth0 -p udp --dport 162 -j REDIRECT --to-port 8166 

and changed the data input to be equal to 8166. There are no other rules in my iptables. I then did a search for index=_internal error ExecProcessor snmp.py and saw no errors, but I see no SNMP data when I search for sourcetype=SNMP_TA.

Additionally when I do a TCPdump for the host that is supposed to be sending the data, I see the traps.

Below are my input settings as they exist now:

SNMP Mode = Listen for traps
IP Version 6 = Not checked
SNMP Version = 2c
Community String = XXXXXX
MIB Names = SNMPv2-MIB
Response Handler = BLANK
Response Handler Arguments = BLANK
TRAP listener host = XXXXX.XXX.com
TRAP listener port = 8166
Reverse DNS lookup of trap sources = Not checked
Set sourcetype * = Manual
Source Type = cisco:asa
Host field value = localhost.localdomain
Index = access
0 Karma

Damien_Dallimor
Ultra Champion

1)

Permission denied snmp_stanza:snmp://XXXXXX"

Well , you are likely getting the error for port 162 because this is a privileged port < 1024 and you are not running Splunk with necessary user privileges

2)

I see no SNMP data when I search for sourcetype=SNMP_TA.

Perhaps because you have set the sourcetype above to cisco:asa

3)

added a MIB file (SNMPv2-MIB) from Cisco

FYI : you don't need to do this. By default the SNMP Mod Input ships with several standard core and common MIBs and this is one of them.You can see all these MIBs by unzipping snmp_ta/bin/mibs/pysnmp_mibs-0.1.4-py2.7.egg

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...