feat(checkmk): add REST API pull integration with authentication support#6262
Open
haoyousun60-create wants to merge 1 commit intokeephq:mainfrom
Open
feat(checkmk): add REST API pull integration with authentication support#6262haoyousun60-create wants to merge 1 commit intokeephq:mainfrom
haoyousun60-create wants to merge 1 commit intokeephq:mainfrom
Conversation
- Added CheckmkProviderAuthConfig with URL, username, auth token support - Added PROVIDER_SCOPES for read_hosts, read_services, read_events - Added pull_alerts() method to fetch hosts/services via Checkmk REST API - Added _get_headers(), _get_all_hosts(), _get_all_services() helper methods - Added validate_config() with proper credential checks - Maps Checkmk service states (0=OK, 1=WARN, 2=CRIT, 3=UNKNOWN) to AlertSeverity
|
|
Contributor
|
No linked issues found. Please add the corresponding issues in the pull request description. |
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
Enhanced the Checkmk provider with full REST API pull support. Previously the provider only supported webhook-based (push) integration. This PR adds the ability to actively pull alerts from Checkmk's REST API.
Changes
New Authentication Config
New Provider Scopes
New Methods
State Mapping
Maps Checkmk service states to Keep alert severities:
Testing
Tested locally against Checkmk 2.2+ REST API endpoints.