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

Claim

Total prize pool $30
Total paid $0
Status Pending
Submitted April 22, 2026
Last updated April 22, 2026

Contributors

VA

vasquezmyguy-collab

@vasquezmyguy-collab

100%

Sponsors

KE

Keep (YC W23)

@keephq

$30