HomePhabricator
Diffusion Scap 9da7653650bd

Support NRPE checks

Authored by dduvall.

Description

Support NRPE checks

Summary:
Implemented an nrpe checktype for reusing existing Icinga/NRPE checks
in deployments.

By default, checks are loaded and registered from all NRPE definitions
in /etc/nagios/nrpe.d and can be referenced in checks.yaml using
type: nrpe.

checks:
  service_endpoints:
    type: nrpe
    command: check_service_endpoints

Implementation based on P2124.

Depends on D11. Fixes T114284.

Test Plan:
Run unit tests with tox.

Define a valid nrpe check in checks.yaml and execute deploy.

Reviewers: mmodell, thcipriani, demon, mobrovac

Reviewed By: demon, mobrovac

Maniphest Tasks: T114284

Differential Revision: https://phabricator.wikimedia.org/D12