feat(providers): add Nagios monitoring provider#5789
feat(providers): add Nagios monitoring provider#5789junyuc25 wants to merge 1 commit intokeephq:mainfrom
Conversation
Adds NagiosProvider supporting both push (webhook) and pull (Nagios XI REST API) modes: - Webhook push mode works with Nagios Core and Nagios XI via curl notification commands - Pull mode fetches non-OK service/host statuses from Nagios XI REST API - Includes ALERTS_MOCK.py, README with local testing instructions, and 15 unit tests Closes keephq#3960
|
Someone is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
|
junyuc25 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. |
I believed I already signed the CLA |
Summary
Adds a Nagios monitoring provider to Keep.
Changes
keep/providers/nagios_provider/nagios_provider.py— Full provider implementationNagiosProviderAuthConfigwithnagios_url,api_key,verifyfields_format_alertas@staticmethodhandling service + host webhook payloads_get_alertspulling from Nagios XI/api/v1/objects/servicestatusand/hoststatusvalidate_scopesverifying XI API connectivitySEVERITY_MAP,STATUS_MAP,NOTIFICATION_TYPE_TO_STATUSdictskeep/providers/nagios_provider/ALERTS_MOCK.py— 8 sample payloads (service/host, all states, RECOVERY, ACKNOWLEDGEMENT)keep/providers/nagios_provider/README.md— Setup guide for webhook and pull modes, Docker-based local testingtests/test_nagios_provider.py— 15 unit tests (all passing)Test plan
_format_alerthandles service CRITICAL, WARNING, UNKNOWN, and RECOVERY payloads_format_alerthandles host DOWN, UNREACHABLE, and RECOVERY payloads_format_alertmaps ACKNOWLEDGEMENT notification type correctlyCloses #3960