GithubHelp home page GithubHelp logo

opx-snmp's Issues

snmpwalk is not possible: OID not increasing

If i start an snmpwalk it breaks with:

# snmpwalk -v 2c -cpublic localhost .1.3.6.1.2.1
iso.3.6.1.2.1.1.1.0 = STRING: "Platform:S4248FBL-ON, NOS:OPXunstable"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.674
iso.3.6.1.2.1.1.3.0 = Timeticks: (10703) 0:01:47.03
iso.3.6.1.2.1.1.4.0 = STRING: "OpenSwitch.net"
iso.3.6.1.2.1.1.5.0 = STRING: "OPX"
iso.3.6.1.2.1.1.6.0 = STRING: "Santa Clara, CA"
iso.3.6.1.2.1.1.7.0 = INTEGER: 6
iso.3.6.1.2.1.1.8.0 = Timeticks: (0) 0:00:00.00
iso.3.6.1.2.1.2.2.1.1.66 = INTEGER: 66
iso.3.6.1.2.1.2.2.1.1.66 = INTEGER: 66
Error: OID not increasing: iso.3.6.1.2.1.2.2.1.1.66
 >= iso.3.6.1.2.1.2.2.1.1.66

opx-snmp: service dies if prtg searches for available snmp data

journal show the following error

Oct 01 19:32:00 r3 SNMPAgent[10224]: SNMPAgent: version is v2
Oct 01 19:32:00 r3 SNMPAgent[10224]: Starting agent
Oct 01 19:32:00 r3 SNMPAgent[10224]: Traceback (most recent call last):
Oct 01 19:32:00 r3 SNMPAgent[10224]:   File "/usr/sbin/SNMPAgent", line 293, in <module>
Oct 01 19:32:00 r3 SNMPAgent[10224]:     agent.serve_forever()
Oct 01 19:32:00 r3 SNMPAgent[10224]:   File "/usr/sbin/SNMPAgent", line 284, in serve_forever
Oct 01 19:32:00 r3 SNMPAgent[10224]:     self._snmpEngine.transportDispatcher.runDispatcher()
Oct 01 19:32:00 r3 SNMPAgent[10224]:   File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dispatch.py", line 50, in runDispatcher
Oct 01 19:32:00 r3 SNMPAgent[10224]:     raise PySnmpError('poll error: %s' % ';'.join(format_exception(*exc_info())))
Oct 01 19:32:00 r3 SNMPAgent[10224]: pysnmp.error.PySnmpError: poll error: Traceback (most recent call last):
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dispatch.py", line 46, in runDispatcher
Oct 01 19:32:00 r3 SNMPAgent[10224]:     use_poll=True, map=self.__sockMap, count=1)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/lib/python2.7/asyncore.py", line 220, in loop
Oct 01 19:32:00 r3 SNMPAgent[10224]:     poll_fun(timeout, map)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/lib/python2.7/asyncore.py", line 201, in poll2
Oct 01 19:32:00 r3 SNMPAgent[10224]:     readwrite(obj, flags)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/lib/python2.7/asyncore.py", line 123, in readwrite
Oct 01 19:32:00 r3 SNMPAgent[10224]:     obj.handle_error()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/lib/python2.7/asyncore.py", line 108, in readwrite
Oct 01 19:32:00 r3 SNMPAgent[10224]:     obj.handle_read_event()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/lib/python2.7/asyncore.py", line 449, in handle_read_event
Oct 01 19:32:00 r3 SNMPAgent[10224]:     self.handle_read()
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/asyncore/dgram/base.py", line 170, in handle_read
Oct 01 19:32:00 r3 SNMPAgent[10224]:     self._cbFun(self, transportAddress, incomingMessage)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/carrier/base.py", line 70, in _cbFun
Oct 01 19:32:00 r3 SNMPAgent[10224]:     self, transportDomain, transportAddress, incomingMessage
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/entity/engine.py", line 152, in __receiveMessageCbFun
Oct 01 19:32:00 r3 SNMPAgent[10224]:     self, transportDomain, transportAddress, wholeMsg
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/proto/rfc3412.py", line 433, in receiveMessage
Oct 01 19:32:00 r3 SNMPAgent[10224]:     PDU, maxSizeResponseScopedPDU, stateReference)
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/entity/rfc3413/cmdrsp.py", line 161, in processPdu
Oct 01 19:32:00 r3 SNMPAgent[10224]:     errorStatus, errorIndex = 'noSuchName', sys.exc_info()[1]['idx'] + 1
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;  File "/usr/local/lib/python2.7/dist-packages/pysnmp/smi/error.py", line 31, in __getitem__
Oct 01 19:32:00 r3 SNMPAgent[10224]:     return self.__outArgs[key]
Oct 01 19:32:00 r3 SNMPAgent[10224]: ;KeyError: 'idx'
Oct 01 19:32:00 r3 SNMPAgent[10224]: caused by <type 'exceptions.KeyError'>: 'idx'
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Main process exited, code=exited, status=1/FAILURE
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Unit entered failed state.
Oct 01 19:32:00 r3 systemd[1]: opx-pysnmp.service: Failed with result 'exit-code'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.