Skip to content

feat(snmp): add forwarded webhook snmp provider#6134

Closed
maketes79 wants to merge 1 commit intokeephq:mainfrom
maketes79:feat/snmp-forwarded-webhook-provider
Closed

feat(snmp): add forwarded webhook snmp provider#6134
maketes79 wants to merge 1 commit intokeephq:mainfrom
maketes79:feat/snmp-forwarded-webhook-provider

Conversation

@maketes79
Copy link

Closes #2112
/claim #2112
Summary
Adds an snmp provider that ingests forwarded SNMP trap data as JSON through Keep's existing webhook event endpoint.

This implementation is intentionally scoped to forwarded JSON trap ingestion only. It does not add a native UDP listener or a Keep-side SNMP runtime dependency.

What changed
Added snmp webhook provider, trap OID to alert name/severity mapping, stable fingerprint generation using fingerprint or source_address|trap_oid|entity_id, batch JSON payload support, provider docs and generated snippet and unit tests for parsing, mapping, and fingerprint behavior.

Testing
pytest tests/providers/snmp_provider/test_snmp_provider.py --confcutdir=tests/providers/snmp_provider
ruff check keep/providers/snmp_provider tests/providers/snmp_provider
black --check keep/providers/snmp_provider tests/providers/snmp_provider
isort --check-only keep/providers/snmp_provider tests/providers/snmp_provider
python scripts/docs_render_provider_snippets.py --validate
bash scripts/docs_validate_navigation.sh

Manual verification
POST single linkDown SNMP payload to /alerts/event/snmp -> 202 Accepted
POST single linkUp SNMP payload to /alerts/event/snmp -> 202 Accepted
POST JSON array with 2 SNMP events to /alerts/event/snmp -> 202 Accepted

@vercel
Copy link

vercel bot commented Mar 25, 2026

@maketes79 is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Mar 25, 2026
@CLAassistant
Copy link

CLAassistant commented Mar 25, 2026

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot bot added Documentation Improvements or additions to documentation Feature A new feature Provider Providers related issues labels Mar 25, 2026
@shahargl shahargl closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Bounty claim Documentation Improvements or additions to documentation Feature A new feature Provider Providers related issues size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🔌 Provider]: SNMP provider

3 participants