Configured Cisco router to send traps to my Splunk, via port 162;
Installed SNMP add-on;
Downloaded SNMPv2-SMI,SNMPv2-TC,IANAifType-MIB,RFC1213-MIB,SNMPv2-MIB,SNMPv2-CONF,IF-MIB MIBs from Ciscowebsite and converted them to Python files by 'build-pysnmp-mib'- (Eg : SNMPv2-CONF.py,IF-MIB.py) Does this fine or needed compiled code ?
Moved the .py files to $SPLUNK_ROOT/etc/apps/snmp_ta/bin/mibs/ directory;
Created and configured a new SNMPinput. (inputs.conf)
[snmp://read_snmp]
do_bulk_get = 0
host = 10.0.255.46
listen_traps = 1
ipv6 = 0
snmp_mode = traps
snmp_version = 2C
sourcetype = read_snmp
split_bulk_output = 0
trap_host = 10.0.255.247
trap_port = 162
v3_authProtocol = usmHMACMD5AuthProtocol
v3_privProtocol = usmDESPrivProtocol
mib_names = SNMPv2-SMI,SNMPv2-TC,IANAifType-MIB,RFC1213-MIB,SNMPv2-MIB,SNMPv2-CONF,IF-MIB
Corrections made with splunk answers help :
Corrected the host name (localhost) to proper Ip address of the splunk host , as i set in the cisco router.
Updated the conf file with listen_traps = 1
Checked for errors with query : "index=_internal ExecProcessor error snmp.py"
Results: (from this error - should i need to correct something ? please advise !)
10.0.255.103 - admin [23/Oct/2014:14:37:56.321 +0000] "GET /en-US/api/shelper?snippet=true&snippetEmbedJS=false&namespace=search&search=search+index%3D_internal+ExecProcessor+error+snmp.py+&useTypeahead=true&useAssistant=true&showCommandHelp=true&showCommandHistory=true&showFieldInfo=false&_=1414075022892 HTTP/1.1" 200 748 "http://10.0.255.247:8000/en-US/app/search/search?q=search%20index%3D*%20host%3D%2210.0.255.46%22&earliest=&latest=&sid=1414075069.31" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36" - 544912c4527fa79c57c0d0 130ms
10.0.255.103 - admin [23/Oct/2014:14:12:39.735 +0000] "GET /en-US/api/shelper?snippet=true&snippetEmbedJS=false&namespace=search&search=search+index%3D_internal+ExecProcessor+error+snmp.py+&useTypeahead=true&useAssistant=true&showCommandHelp=true&showCommandHistory=true&showFieldInfo=false&_=1414070887398 HTTP/1.1" 200 750 "http://10.0.255.247:8000/en-US/app/search/search?q=search%20index%20%3D*%20host%3D%2210.0.255.46%22&earliest=&latest=&sid=1414073547.86" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36" - 54490cd7bc7f539012ba50 262ms
Still I could see any traps in search app 😞
Does any other thing to setup ?
Please help.
... View more