[ All integrations ](https://ohdear.app/third-party-integrations)

# Drupal Integration

Set up application health and cron monitoring checks for your Drupal application.

[ www.drupal.org ](https://www.drupal.org/project/ohdear_integration)

by [ drunomics ](https://drunomics.com)

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 [\#](#features)

- **Application Health Endpoint**: Provides a `/json/oh-dear-health-check-results` endpoint 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 [\#](#installation)

```
<span class="hl-keyword">composer</span> require <span class="hl-value">'drupal/ohdear_integration:^3.0'</span>
```

Requires Drupal 10 or 11 and PHP 8.1+.

## Drush Commands [\#](#drush-commands)

- `drush ohdear:maintenance` - Manage maintenance windows (view, start, stop)
- `drush ohdear:info` - Display site configuration details
- `drush ohdear:broken-links` - Retrieve broken link reports
- `drush ohdear:uptime` - Check uptime with customizable timeframes

## Configuration [\#](#configuration)

1. Set your health check secret at `/admin/config/system/settings`
2. Configure monitoring sensors at `/admin/config/system/monitoring/settings`
3. Input the Oh Dear ping URI for cron monitoring

For detailed setup instructions, see the [Drupal.org project page](https://www.drupal.org/project/ohdear_integration).
