OhDear Integration logo

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

Supporting organizations: 
Funding development

Project information

Releases