Skip to content

feat: implement SNMP Trap provider with asynchronous listener Description:#6283

Open
Myc911 wants to merge 2 commits intokeephq:mainfrom
Myc911:feat/snmp-trap-provider
Open

feat: implement SNMP Trap provider with asynchronous listener Description:#6283
Myc911 wants to merge 2 commits intokeephq:mainfrom
Myc911:feat/snmp-trap-provider

Conversation

@Myc911
Copy link
Copy Markdown

@Myc911 Myc911 commented Apr 23, 2026

his PR introduces a new SnmpProvider that supports receiving asynchronous SNMP Traps (v1, v2c).

Key Features:

Async Consumption: Implements start_consume to run a pysnmp engine in a dedicated thread using Keep's EventSubscriber architecture.
Trap Processing: Automatically converts incoming SNMP traps into AlertDto format, extracting OIDs into the alert payload.
Flexible Configuration: Supports custom bind address, port, and community strings via the provider settings.
Dependency Management: Added pysnmp-lextudio to pyproject.toml.
This fulfills the requirement for a passive SNMP monitoring solution that responds to device-initiated alerts.
/claim #2112

Tip

This PR also includes a simulate_snmp_test.py script to demonstrate the SNMP Trap reception logic, which can be used for verification.

Closes #2112

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 23, 2026
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 23, 2026

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot Bot added Dependencies Pull requests that update a dependency file Feature A new feature Provider Providers related issues labels Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Bounty claim Dependencies Pull requests that update a dependency file Feature A new feature Provider Providers related issues size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🔌 Provider]: SNMP provider

2 participants