feat: add SNMP trap provider#6471
Open
Treasure520520 wants to merge 1 commit into
Open
Conversation
4db09aa to
83c620a
Compare
Author
|
CLA is now signed and the issue-link/title/security checks are green. This PR is ready for maintainer review from my side. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #2112
Fixes #2112
Summary
Adds a native SNMP provider that can receive SNMP v1/v2c traps over UDP and convert them into Keep alerts.
The implementation is intentionally dependency-light: it uses a small BER decoder plus a UDP listener, so Keep can receive common traps without adding a third-party SNMP runtime dependency.
What changed
SnmpProviderwith configurablelisten_host,listen_port,community, queue size, and socket timeout.linkDown,linkUp,coldStart,warmStart, andauthenticationFailureinto Keep status/severity.Demo
Short demo asset: https://github.com/Treasure520520/keep/releases/download/keep-snmp-provider-demo-2112/keep-snmp-provider-demo.gif
Validation
The focused test run passes with 4 SNMP provider tests.
Notes
162, but the docs recommend using an unprivileged port such as1162for local development.