fastsnmp icon indicating copy to clipboard operation
fastsnmp copied to clipboard

KeyError on last_seen_index with multiples OIDs

Open Maiiwen opened this issue 2 years ago • 1 comments

Hi, I'm trying to make some SNMP query to multiple hosts and multiples OIDs, but this error appears :

File "/home/user/.local/lib/python3.10/site-packages/fastsnmp/snmp_poller.py", line 253, in poller oids_to_poll.append("%s.%s" % (recv_job.main_oids[pos], last_seen_index[pos])) KeyError: 11

Maiiwen avatar Dec 01 '22 14:12 Maiiwen

Please, collect debug information with

fastsnmp.snmp_poller.DEBUG = True
logging.basicConfig(level= logging.DEBUG, format="%(asctime)s %(name)s - %(filename)s:%(lineno)d - %(funcName)s() - %(levelname)s - %(message)s")
....

gescheit avatar Dec 08 '22 09:12 gescheit