All Apps and Add-ons

SNMP Modular Input: Why am I getting these splunkd.log errors after creating a Python module from a MIBs file?

Ahmedkhalil
Path Finder

Dears,

I have followed documentation to create a Python module from Mibs file and I have added all SNMP input as said in documentation, but I didn't get any output and splunkd.log gives me the errors below.
Please advise.

11-16-2015 15:22:08.235 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"  snmp_stanza:snmp://snmp_f5
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception with bulkCmd to 192.168.5.221:161: poll error: Traceback (most recent call last):
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/carrier/asynsock/dispatch.py", line 37, in runDispatcher
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     use_poll=True, map=self.__sockMap, count=1)
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 220, in loop
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     poll_fun(timeout, map)
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 201, in poll2
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     readwrite(obj, flags)
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 123, in readwrite
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     obj.handle_error()
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 108, in readwrite
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     obj.handle_read_event()
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 449, in handle_read_event
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self.handle_read()
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/carrier/asynsock/dgram/base.py", line 83, in handle_read
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self._cbFun(self, transportAddress, incomingMessage)
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/carrier/base.py", line 52, in _cbFun
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self, transportDomain, transportAddress, incomingMessage
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/entity/engine.py", line 64, in __receiveMessageCbFun
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self, transportDomain, transportAddress, wholeMsg
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/proto/rfc3412.py", line 453, in receiveMessage
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     cachedParams['cbCtx']
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/entity/rfc3413/cmdgen.py", line 156, in processResponsePdu
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     (cbFun, cbCtx),
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/entity/rfc3413/cmdgen.py", line 599, in _handleResponse
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     varBindTable, cbCtx):
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 370, in __cbFun
11-16-2015 15:22:17.015 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     [ self.unmakeVarBinds(varBindTableRow, lookupNames, lookupValues) for varBindTableRow in varBindTable ],
11-16-2015 15:22:17.015 +0200 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.5-py2.7.egg/pysnmp/entity/rfc3413/oneliner/cmdgen.py", line 233, in unmakeVarBinds
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     varName = MibVariable(name).resolveWithMib(self.mibViewController)
11-16-2015 15:22:17.016 +0200 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.5-py2.7.egg/pysnmp/entity/rfc3413/oneliner/mibvar.py", line 141, in resolveWithMib
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self.__indices = rowNode.getIndicesFromInstId(suffix)
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "<string>", line 1076, in getIndicesFromInstId
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "<string>", line 903, in setFromName
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/univ.py", line 107, in clone
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     return self.__class__(value, tagSet, subtypeSpec, namedValues)
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/univ.py", line 22, in __init__
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self, value, tagSet, subtypeSpec
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/base.py", line 69, in __init__
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     self._verifySubtypeSpec(value)
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/etc/apps/snmp_ta/bin/pyasn1-0.1.6-py2.7.egg/pyasn1/type/base.py", line 33, in _verifySubtypeSpec
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     raise c('%s at %s' % (i, self.__class__.__name__))
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;ValueConstraintError: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(1, 2147483647)) failed at: "ValueRangeConstraint(1, 2147483647) failed at: "0"" at Integer32
11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"  snmp_stanza:snmp://snmp_f5
11-16-2015 15:22:25.852 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" Exception with bulkCmd to 192.168.5.221:161: poll error: Traceback (most recent call last):
11-16-2015 15:22:25.852 +0200 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.5-py2.7.egg/pysnmp/carrier/asynsock/dispatch.py", line 37, in runDispatcher
11-16-2015 15:22:25.852 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     use_poll=True, map=self.__sockMap, count=1)
11-16-2015 15:22:25.852 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 220, in loop
11-16-2015 15:22:25.852 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     poll_fun(timeout, map)
11-16-2015 15:22:25.853 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;  File "/opt/splunk/lib/python2.7/asyncore.py", line 201, in poll2
11-16-2015 15:22:25.853 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py"     readwrite(obj, flags)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Based on this line

11-16-2015 15:22:17.016 +0200 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/snmp_ta/bin/snmp.py" ;ValueConstraintError: ConstraintsIntersection(ConstraintsIntersection(ConstraintsIntersection(), ValueRangeConstraint(-2147483648, 2147483647)), ValueRangeConstraint(1, 2147483647)) failed at: "ValueRangeConstraint(1, 2147483647) failed at: "0"" at Integer32

it would seem a non-negative integer was expected, but zero was found. The location of that integer is not clear from the traceback.

---
If this reply helps you, Karma would be appreciated.
0 Karma

Ahmedkhalil
Path Finder

How can i fix this i used Ubuntu 15.10 Desktop to install build-pysnmp-mib using pip command
and follow all the steps in guide this mibs is related to F5 products
is there any other solutions to my problem

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm not familiar with the tool you are using, but it seems the problem lies in the MIB you are processing. There is a zero where a number greater than zero is expected. That's not much to go on. Sorry.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...