Skip to content

feat(provider): add SNMP provider with GET/WALK support and pull alerts#6263

Open
haoyousun60-create wants to merge 1 commit intokeephq:mainfrom
haoyousun60-create:feature/snmp-provider
Open

feat(provider): add SNMP provider with GET/WALK support and pull alerts#6263
haoyousun60-create wants to merge 1 commit intokeephq:mainfrom
haoyousun60-create:feature/snmp-provider

Conversation

@haoyousun60-create
Copy link
Copy Markdown

Summary

Adds a new SNMP Provider to Keep for monitoring network devices via SNMP (v1, v2c, v3).

Files

  • keep/providers/snmp_provider/snmp_provider.py - Main provider (GET, WALK, pull_alerts, _format_alert)
  • keep/providers/snmp_provider/init.py - Module exports
  • keep/providers/snmp_provider/alerts_mock.py - Mock data for tests
  • keep/providers/snmp_provider/README.md - Documentation
  • pyproject.toml - Added pysnmp-lextudio dependency

Features

  • GET/WALK: Query single OIDs or walk subtrees
  • Pull Alerts: Polls IF-MIB and HOST-RESOURCES-MIB for non-normal statuses
  • Trap Handling: _format_alert() processes incoming SNMP traps
  • Auth: SNMP v1/v2c (community) and v3 (USM: MD5/SHA, DES/AES)

Closes

Fixes #3971

- Support SNMP v1, v2c, and v3 (MD5/SHA, DES/AES)
- GET and WALK methods for querying OIDs
- pull_alerts() polls IF-MIB and HOST-RESOURCES-MIB for non-normal statuses
- _format_alert() handles incoming SNMP trap notifications
- Add pysnmp-lextudio dependency to pyproject.toml

Closes: keephq#3971
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Apr 19, 2026
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@dosubot dosubot Bot added Feature A new feature Provider Providers related issues labels Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

[🐛 Bug]: several issues in incidents and correlation rule builder

2 participants