Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError on last_seen_index with multiples OIDs #19

Open
Maiiwen opened this issue Dec 1, 2022 · 1 comment
Open

KeyError on last_seen_index with multiples OIDs #19

Maiiwen opened this issue Dec 1, 2022 · 1 comment

Comments

@Maiiwen
Copy link

Maiiwen commented Dec 1, 2022

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
Copy link
Owner

gescheit commented Dec 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants