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

registerProviders crashes at 851 providers #252

Open
ivanbaj opened this issue Apr 18, 2024 · 1 comment
Open

registerProviders crashes at 851 providers #252

ivanbaj opened this issue Apr 18, 2024 · 1 comment
Labels
insufficient information Needs submitter to provide more information as per CONTRIBUTING.md guidelines

Comments

@ivanbaj
Copy link

ivanbaj commented Apr 18, 2024

I am trying to register 1200 providers. Using

agent.registerProviders(providers);

It crashes with Unknown PDU type 0. The buffers of the snmp response gets overwritten and AgentXPdu.createFromBuffer it gets a PDU of type 0. I am assuming all PDU fields at this point are suspicious.

Thuis crash happens when the number of providers is 851 or higher. It works with 850.

I am using RedHat linux snmp as the master agent.

Then I split my array in to two arrays one with 850 and the second with the remaining providers.

I loaded the first array and set a time out of 500ms and then loaded the second array of providers. That works fine.

My question is: Does this make sense? And, if there are limit of number of providers registered to the master agent should we add some sort of batching?

@markabrahams
Copy link
Owner

Hi @ivanbaj - there is no limit in the net-snmp library code on the number of AgentX providers that can be registered. If you could provide the details of the error message and some code to reproduce the condition, this would help to investigate the problem further.

@markabrahams markabrahams added the insufficient information Needs submitter to provide more information as per CONTRIBUTING.md guidelines label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
insufficient information Needs submitter to provide more information as per CONTRIBUTING.md guidelines
Projects
None yet
Development

No branches or pull requests

2 participants