Splunk IT Service Intelligence

Issus for SNMP Modular Input

biwy168
New Member

Hi expert:

I download apps SNMP Modular Input from http:\\splunk-base.splunk.com/apps/88686/snmp-modular-input
I have read description in that websit.
Download a Cisco Mibs in python "egg" from  

But I can not see any snmp data, and some error in $SPLUNK_HOMEar/log/splunk/splunkd.log as blow.

06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Traceback (most recent call last):
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" File "/opt/splunk/etc/apps/snmp_ta/bin/snmp.py", line 492, in
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" do_run()
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" File "/opt/splunk/etc/apps/snmp_ta/bin/snmp.py", line 285, in do_run
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" mibBuilder.loadModules(*mib_names_args)
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" File "/opt/splunk/etc/apps/snmp_ta/bin/pysnmp-4.2.4-py2.7.egg/pysnmp/smiilder.py", line 262, in loadModules
06-27-2013 15:28:52.173 +0800 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" pysnmp.smi.error.SmiError: MIB file "Cisco-Mibs.py[co]" not found in search path

 How can I solve this issus?
0 Karma

pmeyerson
Path Finder

I think the issue is you are missing the .pyc python byte code compile files.
I was able to generate these on a linux/CentOS box by running the following command from the directory where my .py files live:
python -m compileall .
(careful you need to include the space + period at the end of the command).

Then add the .pyc to your snmp-ta mibs folder on your splunk server.

0 Karma

Damien_Dallimor
Ultra Champion

Can you format the post again so I can read it ?

"..Download a Cisco Mibs in python "egg" from"....

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...