gescheit / fastsnmp

Fast SNMP poller
MIT License
19 stars 7 forks source link

KeyError on last_seen_index with multiples OIDs #19

Open Maiiwen opened 1 year ago

Maiiwen commented 1 year ago

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

gescheit commented 1 year ago

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")
....