Skip to content

feat: add Nagios provider for monitoring host/service alerts#6278

Open
vasquezmyguy-collab wants to merge 1 commit intokeephq:mainfrom
vasquezmyguy-collab:feat/nagios-provider
Open

feat: add Nagios provider for monitoring host/service alerts#6278
vasquezmyguy-collab wants to merge 1 commit intokeephq:mainfrom
vasquezmyguy-collab:feat/nagios-provider

Conversation

@vasquezmyguy-collab
Copy link
Copy Markdown

Summary

Implements a Nagios provider for Keep that polls Nagios for host and service alerts (#3960).

Changes

  • NagiosProvider class following the polling pattern (_query method)
  • Fetches host and service problems via the Nagios JSON CGI API (statusjson.cgi)
  • Maps Nagios states (DOWN/CRITICAL/WARNING/OK/UNKNOWN) to Keep severity levels
  • Supports HTTP/HTTPS with basic authentication
  • Configurable host, port, username, password, URL prefix
  • Includes _format_alert() static method for webhook/push notifications
  • Includes mock alert data for testing

How it works

The provider polls Nagios at regular intervals via the statusjson.cgi endpoint:

  • Host alerts: Queries hostlist for hosts with problems (DOWN, UNREACHABLE)
  • Service alerts: Queries servicelist for services in CRITICAL or WARNING state

Each alert is converted to Keep alert format with proper severity mapping.

/claim #3960

Closes #3960

…3960)

- NagiosProvider class following polling pattern (_query method)
- Fetches host and service problems via Nagios JSON CGI API
- Maps Nagios states (DOWN/CRITICAL/WARNING/OK) to Keep severity
- Supports HTTP/HTTPS with basic auth
- Includes webhook alert formatting for Nagios notifications
- Includes mock alert data for host down, service critical, service warning

/claim keephq#3960
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 22, 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.


vasquezmyguy-collab seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
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 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🙋 Bounty claim 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]: Nagios Provider

2 participants