Getting Data In

SNMP Modular Input Custom MIB files

thaddeuslim
Explorer

Hi I am facing a problem trying to get custom MIB files to work. I have already placed converted the mib file to .py and placed it in the ./snmp_ta/bin/mibs/ folder. I have also configured the inputs.conf to look at the specific mib file.

ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception resolving MIB value in the caught trap: Invalid sub-ID in (ObjectSyntax().setComponentByPosition(0, SimpleSyntax().setComponentByPosition(2, ObjectIdentifier(1.3.6.1.4.1.8072.2.3.2.1))), None, None, None, None) at ObjectIdentifier snmp_stanza:snmp://Thad Test

ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception resolving MIB value in the caught trap: Can't coerce BindValue().setComponentByPosition(0, ObjectSyntax().setComponentByPosition(1, ApplicationSyntax().setComponentByPosition(2, TimeTicks(133945898)))) into integer: _BindValue instance has no attribute 'trunc_' snmp_stanza:snmp://Thad Test

Tags (2)

laurie_gellatly
Communicator

Could it be that the MIB requires a 'parent' MIB that it connects onto?
There might be an enterprise MIB and then your specific MIB required.

0 Karma

thaddeuslim
Explorer

Thank you for the comment, I think I have already included those. Currently facing these 2 errors

ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception resolving MIB value in the caught trap: Invalid sub-ID in (ObjectSyntax().setComponentByPosition(0, SimpleSyntax().setComponentByPosition(2, ObjectIdentifier(1.3.6.1.4.1.6889.2.18.1.1.1.0.1))), None, None, None, None) at ObjectIdentifier snmp_stanza:snmp://Thad Test

ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception resolving MIB value in the caught trap: Can't coerce BindValue().setComponentByPosition(0, ObjectSyntax().setComponentByPosition(1, ApplicationSyntax().setComponentByPosition(2, TimeTicks(133862679)))) into integer: _BindValue instance has no attribute 'trunc_' snmp_stanza:snmp://Thad Test

0 Karma

dauren_akilbeko
Communicator

Does the name of MIB in the directory match the name of MIB in the modular input? Also this might be a problem with the converted MIB.

0 Karma

thaddeuslim
Explorer

Hi Dauren, yes I have made sure to match the MIB names.

0 Karma
Get Updates on the Splunk Community!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...