WordPress health endpoint

Enable the pull endpoint:

define('CINDER_HEALTH_ENDPOINT_ENABLED', true);
define('CINDER_HEALTH_CHECK_SECRET', 'YOUR-HEALTH-SECRET');

Cinder pulls {site}/cinder/v1/health with an Authorization: Bearer <secret> header. A REST alias is registered at cinder/v1/health.

Default probes cover the PHP version, disk usage, core/plugin/theme updates, debug output, the database, overdue WP-Cron events, and Site Health critical issues.

Customise the probe list with the cinder_health_probes filter. It receives and must return a list of Cinderwatch\Health\Probe instances:

use Cinderwatch\Health\Probes\UrlReachableProbe;

add_filter('cinder_health_probes', function (array $probes): array {
    $probes[] = new UrlReachableProbe(url: 'https://example.com/up', requireSuccessStatus: true);

    return $probes;
});

Run the probes manually:

wp cinder health

Pass --strict to exit non-zero when any probe is degraded, unhealthy or errored.