Drupal Module for Oh Dear Health & Cron Checks
Connect Drupal 10 or 11 to Oh Dear for application health and cron job monitoring, with Drush commands for maintenance windows, uptime and broken links.
The OhDear Integration module connects your Drupal website with Oh Dear's monitoring platform. While basic uptime and performance monitoring work out of the box, this module enables advanced features like application health monitoring and cron job tracking.
Features #
- Application Health Endpoint: Provides a
/json/oh-dear-health-check-resultsendpoint for health checks - Cron Monitoring: Automatically pings Oh Dear when cron runs to track scheduled task execution
- Drush Commands: CLI tools for managing maintenance windows, viewing uptime, and checking broken links
Installation #
composer require 'drupal/ohdear_integration:^3.0'
Requires Drupal 10 or 11 and PHP 8.1+.
Drush Commands #
drush ohdear:maintenance- Manage maintenance windows (view, start, stop)drush ohdear:info- Display site configuration detailsdrush ohdear:broken-links- Retrieve broken link reportsdrush ohdear:uptime- Check uptime with customizable timeframes
Configuration #
- Set your health check secret at
/admin/config/system/settings - Configure monitoring sensors at
/admin/config/system/monitoring/settings - Input the Oh Dear ping URI for cron monitoring
For detailed setup instructions, see the Drupal.org project page.