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

Batch raw OID retrieval to bypass 'tooBig' SNMP error #1155

Merged
merged 1 commit into from
Dec 31, 2014

Conversation

bpuzon
Copy link
Contributor

@bpuzon bpuzon commented Oct 14, 2014

When trying to poll about 40 OIDs at the same time we got
an SNMP 'tooBig' error and no stats were exported at all.
One can change the size limit in the server's SNMP configuration
but it can be done only so much.
This is a bit naive approach to fix it which seems to be working.

When trying to poll about 40 OIDs at the same time we got
an SNMP 'tooBig' error and no stats were exported at all.
One can change the size limit in the server's SNMP configuration
but it can be done only so much.
This is a bit naive approach to fix it which seems to be working.
@LeoCavaille
Copy link
Member

That's interesting @bpuzon, thanks for reporting this! We'll review your code and include your contribution in a future version of the SNMP check.
Out of curiosity, what kind of devices that you were trying to monitor are raising this tooBig error?

@bpuzon
Copy link
Contributor Author

bpuzon commented Oct 23, 2014

They were SNMP stats exported by a fork of MongooseIM.

for table_row in all_binds:
for result_oid, value in table_row:
if lookup_names:
object = result_oid.getMibSymbol()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this variable while you're at it ? We shouldn't override python function names: https://docs.python.org/2/library/functions.html?highlight=object#object

Thanks!

@remh
Copy link
Contributor

remh commented Dec 22, 2014

Thanks it looks good beside the recommendation about variable name.
Can you fix it and then we'll merge it!

@remh remh self-assigned this Dec 22, 2014
@remh remh merged commit b5fd12d into DataDog:master Dec 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants