Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

OhDear Integration

Security covered Under active development 450 sites

This module integrates your Drupal website with the Oh Dear monitoring service to enable advanced features like application health checks and cron monitoring. It provides an endpoint for Oh Dear to retrieve health check results from Drupal's monitoring module and automatically pings Oh Dear when cron jobs run. The module also includes Drush commands to manage maintenance windows, get site information, check for broken links, and retrieve uptime statistics.

Important Notice

OhDear Integration bellow 3.x are no longer compatible with the OhDear API. Update as soon as possible! See #3544574: Upgrade OhDear's PHP-SDK to v4.

Integrates your Drupal website with the Oh Dear monitoring app. While the main ohdear.app features like Uptime and Performance monitoring do not require anything, the module takes care of the necessary integration for more advanced features like Application health monitoring.

The module provides a /json/oh-dear-health-check-results endpoint for OhDear application health checks by integrating with the Monitoring module, i.e. sensor results from the monitoring module are provide to OhDear via the endpoint.

Moreover, it provides Cron-monitoring by integrating with OhDears Scheduled tasks feature.

Configuration

Application Health

  • At /admin/config/system/settings configure oh-dear-health-check-secret. This is obtained on the Oh Dear service under Application health tab.
  • Configure monitoring sensors at /admin/config/system/monitoring/settings.
  • For nicer health checks overview we've developed a sensor that provides a combined monitoring sensor for all Status-Report checks (called RequirementsRecap). We recommend using it but is currently only available as a patch: #3307528: New sensor: Requirements recap.

Cron monitoring

  • When the OhDear ping URI for cron has been configured, Drupal automatically pings OhDear on cron runs.
  • The ping URI is provided by OhDear under the Scheduled tasks tab.

Drush Commands

Maintenance windows

This modules provides a drush command to start a maintenance window on OhDear.
drush ohdear:maintenance allows you to see existing maintenance windows and reports status. With start and stop flag you can also start a new maintenance window or stop existing one.

Info

drush ohdear:info prints basic info about configured site.

Broken links

drush ohdear:broken-links get broken links for current site.

Uptime

drush ohdear:uptime get uptime for last week with daily uptime percentages. That's the default but with additional arguments you can adjust the start and end time and the time period (day, week, month).

Contribute

Drupal 10–11

Ask your assistant about OhDear Integration

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Mar 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0 Stable 10–11 Sep 11, 2025
3.x-dev Dev 10–11 Sep 10, 2025
2.0.5 Stable 10–11 Jan 10, 2025
2.0.4 Stable 10–11 Oct 30, 2024
2.0.3 Stable 10–11 Oct 9, 2024
2.0.2 Stable 10 Jun 7, 2024
2.0.1 Stable 10 May 14, 2024
2.0.0 Stable 10 Nov 8, 2023
2.x-dev Dev 10–11 Nov 8, 2023
1.0.5 Stable 8–10 Nov 7, 2023