Skip to content

feat(provider): Add SNMP webhook support for receiving traps (Issue #2112)#6097

Closed
matiasmagni wants to merge 19 commits intokeephq:mainfrom
matiasmagni:snmp-clean
Closed

feat(provider): Add SNMP webhook support for receiving traps (Issue #2112)#6097
matiasmagni wants to merge 19 commits intokeephq:mainfrom
matiasmagni:snmp-clean

Conversation

@matiasmagni
Copy link
Copy Markdown

@matiasmagni matiasmagni commented Mar 15, 2026

Summary

Changes

SNMP Provider Enhancements

  • Added webhook support to receive SNMP traps from external systems (Zabbix, Nagios, etc.)
  • Implemented webhook_description and webhook_template class attributes
  • Added parse_event_raw_body() static method for parsing JSON payloads
  • Added _format_alert() static method to convert traps to AlertDto
  • Added WEBHOOK_INSTALLATION_REQUIRED = False to enable webhook tab
  • Made pysnmp optional (only needed for sending traps)

Severity Mapping

  • critical → CRITICAL
  • error/high → HIGH
  • warning/medium → WARNING
  • low → LOW
  • info → INFO

Demo

https://www.youtube.com/watch?v=_i0x0GqxG4Y

Testing

  • Unit tests: tests/test_snmp_provider.py
  • E2E tests: tests/e2e_tests/test_snmp_e2e.py

Closes #2112
Bounty Claim: /claim #2112

…eephq#2112)

- Add webhook_description and webhook_template for receiving SNMP traps
- Add parse_event_raw_body() for parsing incoming trap JSON payloads
- Add _format_alert() to convert traps to AlertDto objects
- Add severity mapping (critical, error, high, warning, medium, low, info)
- Add comprehensive unit tests for all new functionality
- Add E2E test infrastructure for SNMP provider
- Update documentation with webhook configuration examples
…eephq#2112)

- Add webhook_description and webhook_template for receiving traps via HTTP
- Add parse_event_raw_body() for parsing incoming trap JSON payloads
- Add _format_alert() to convert traps to AlertDto objects
- Add severity mapping (critical, error, high, warning, medium, low, info)
- Add comprehensive unit tests for all new functionality
- Add E2E test infrastructure for SNMP provider
- Update documentation with webhook configuration examples
- Add demo guide with curl and PowerShell commands
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 15, 2026

@matiasmagni 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 size:XXL This PR changes 1000+ lines, ignoring generated files. Documentation Improvements or additions to documentation Feature A new feature Provider Providers related issues labels Mar 15, 2026
Jesse-Voo pushed a commit to Jesse-Voo/keep that referenced this pull request Mar 16, 2026
… for receiving traps (Issue keephq#2112)

Generated by AI bounty hunter
Payment: 0x4F666e7b4F63637223625FD4e9Ace6055fD6a847
@shahargl shahargl closed this Mar 16, 2026
@matiasmagni
Copy link
Copy Markdown
Author

@shahargl why was this PR closed?

@shahargl
Copy link
Copy Markdown
Member

there are > 100 PR's for SNMP + we don't have any bounty program any more (hence "/claim" doesn't make sense)

@shahargl
Copy link
Copy Markdown
Member

CleanShot 2026-03-16 at 13 47 39 clearly the demo itself doesn't work (look at the icons)

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:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🔌 Provider]: SNMP provider

2 participants