feat(provider): add SNMP provider - webhook-based trap receiver (closes #2112)#6400
Open
irisdigitaldocs-maker wants to merge 5 commits intokeephq:mainfrom
Open
feat(provider): add SNMP provider - webhook-based trap receiver (closes #2112)#6400irisdigitaldocs-maker wants to merge 5 commits intokeephq:mainfrom
irisdigitaldocs-maker wants to merge 5 commits intokeephq:mainfrom
Conversation
|
|
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
Summary
Adds a new SNMP provider that receives SNMP trap notifications as Keep alerts — closes #2112.
This is a webhook-based, zero-dependency implementation: Keep acts as the HTTP endpoint for a small handler script that forwards trap data from
snmptrapd(or any SNMP manager such as Zabbix or Icinga) as JSON. No pysnmp library required.What is included
keep/providers/snmp_provider/snmp_provider.py— provider implementationlinkUp/warmStartauto-resolve toAlertStatus.RESOLVEDkeep/providers/snmp_provider/alerts_mock.py— 6 realistic mock payloads for manual QAtests/test_snmp_provider.py— 30+ unit tests covering all trap name resolution paths, severity mappings, status paths, all three payload formats, and edge casesdocs/providers/documentation/snmp-provider.mdx— full MDX docs with severity table, three setup options (snmptrapd handler script, direct JSON POST, Zabbix media type), and supported fields referenceTesting
All 30+ tests pass with zero external dependencies.
Setup overview
Full setup docs at
docs/providers/documentation/snmp-provider.mdx.