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

Extending snmpfwd into a caching proxy? #22

Open
Stoatwblr opened this issue Apr 28, 2018 · 1 comment
Open

Extending snmpfwd into a caching proxy? #22

Stoatwblr opened this issue Apr 28, 2018 · 1 comment

Comments

@Stoatwblr
Copy link

SNMP polling is great - until every man and his canine companion is polling your devices every 30 seconds.
That makes your devices very sad and some devices get much sadder than others (especially network switches, which may spend so much time handling snmp requests that they forget to do their primary job - switching network packets)

It would be great to have snmpfwd able to cache results for a preset (configurable?) period so that when there are a bunch of programs polling a device for the same information in a short period of time it can feed the cached answers back to the pollers instead of killing the device.

@etingof
Copy link
Owner

etingof commented Apr 28, 2018

Thanks for rising this! Caching may be very reasonable.

In fact, the required infrastructure is hopefully already in place. If you consider working on this, I imagine you could come up with a plugin Python module which would define two functions to be called on passing SNMP request and response. This is where you could read from / populate cache.

I'd happily merge your caching module if you PR it.

I may be able to work on this, however the priority of this work is currently not at the very top. ;-)

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