Skip to content

feat(providers): Implement Nagios provider via Livestatus #3960#6470

Open
bayandzm wants to merge 2 commits into
keephq:mainfrom
bayandzm:feat/nagios-nsca-provider
Open

feat(providers): Implement Nagios provider via Livestatus #3960#6470
bayandzm wants to merge 2 commits into
keephq:mainfrom
bayandzm:feat/nagios-nsca-provider

Conversation

@bayandzm
Copy link
Copy Markdown

@bayandzm bayandzm commented May 12, 2026

/claim #3960

Implements Livestatus polling for unacknowledged service problems and external command actions (acknowledge, downtime, remove acknowledgement).

Includes a webhook JavaScript script for handling actions.

Changes:

  • Added nagios_provider.py modeled after zabbix_provider.py (~550 LOC)
  • Polling: unacked services
  • Actions: ack/downtime/remove ack via external commands
  • Webhook script for actions

This PR was created with AI assistance.

Closes #3960

Demo: [Add short demo video here as per bounty guidelines]

🤖 AI-assisted code

Implements keephq#3960: Nagios provider with Livestatus polling (problems), external commands (ack/downtime), webhook script.

Files:
- nagios_provider.py (~550 LOC, modeled on zabbix_provider)
- nagios_provider_script.js (Nagios notification to Keep API)
- schema.json (empty, UI-driven)
- __init__.py, README.md
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label May 12, 2026
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 12, 2026

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot Bot added AI Feature A new feature Provider Providers related issues labels May 12, 2026
🤖 AI-assisted code

Adds comprehensive unit tests for Nagios provider:
- Provider category and scope tests
- Provider methods tests
- Severity mapping tests
- simulate_alert tests
- _format_alert tests for service and host alerts
- validate_config and validate_scopes tests
- No Livestatus connection edge case tests

Closes keephq#3960
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI 🙋 Bounty claim 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.

[🔌 Provider]: Nagios Provider

2 participants