Open
Conversation
Adds a new Nagios provider that supports: - Pulling service and host status via Nagios XI REST API - Receiving webhook notifications from Nagios - Acknowledging host and service problems - Severity and status mapping for Nagios states Closes keephq#3960
|
@Harmatta is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
No linked issues found. Please add the corresponding issues in the pull request description. |
Contributor
|
Target branch is not in the allowed branches list. |
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.
/claim #3960
Proposed Changes
Adds a new Nagios XI provider for monitoring integration. This provider enables Keep to pull alerts from Nagios XI and receive webhook notifications.
Features
Files Added
keep/providers/nagios_provider/nagios_provider.py— Main provider implementationkeep/providers/nagios_provider/alerts_mock.py— Mock alert data for testingkeep/providers/nagios_provider/README.md— Documentation with setup instructionskeep/providers/nagios_provider/__init__.pyArchitecture
The provider follows the established Keep provider pattern:
BaseProviderwithNagiosProviderAuthConfigfor authentication_get_alerts()for pull-based alert ingestion_format_alert()static method for webhook-based push ingestionvalidate_scopes()for API connectivity verificationProviderScopeandProviderMethodfor capability declarationProvider Category
Proof
The provider follows the exact same pattern as existing monitoring providers (Zabbix, Checkmk). Key design decisions:
/api/v1/objects/servicestatus,/api/v1/objects/hoststatus)/api/v1/system/commandendpointChecklist