2
2
3
3
<h1 align =" center " >Oh Dear Application Health checker for Craft CMS</h1 >
4
4
5
- This plugin provides a [ Oh Dear] ( https://ohdear.app ) Application Health checker [ Craft CMS] ( https://craftcms.com/ ) .
5
+ This plugin provides an [ Oh Dear] ( https://ohdear.app ) Application Health checker for [ Craft CMS] ( https://craftcms.com/ ) .
6
6
7
7
## 🚦 Health Checks Overview
8
8
9
- This plugin performs the following health checks and provides a JSON feed on yourwebsite.com /application-health.json for Oh Dear.
9
+ This plugin performs the following health checks and provides a JSON feed at ` /application-health.json ` for Oh Dear.
10
10
11
- The response is cached for 5 minutes.
11
+ The response is cached for 5 minutes.
12
12
13
13
### ✅ Updates
14
- Checks if updates are available for Craft CMS and installed plugins.
14
+ Checks if updates are available for Craft CMS and installed plugins, including critical ones .
15
15
16
16
### ✅ Queue Status
17
- Monitors the number of jobs in the queue and detects any failed jobs.
17
+ Monitors the number of jobs in the queue and detects failed, reserved, or delayed jobs using configurable thresholds .
18
18
19
19
### ✅ Pending Migrations
20
20
Verifies if there are any unapplied database migrations.
@@ -32,11 +32,15 @@ Fetches site headers and verifies the presence of key security headers (e.g., CS
32
32
Confirms if the project configuration is fully synchronized.
33
33
34
34
### ✅ PHP Version
35
- Reports the active PHP version running on the server and verifies against a minimum required version.
35
+ Reports the active PHP version running on the server and verifies it against a minimum required version.
36
36
37
37
### ✅ Admin Users
38
38
Lists all admin users and flags users who haven’t logged in for a configurable period.
39
39
40
+ ### ✅ Disk Usage
41
+ Monitors disk space usage and flags if usage exceeds a configurable threshold.
42
+ * (Disabled by default to avoid noise on shared servers.)*
43
+
40
44
## Requirements
41
45
42
46
This plugin requires Craft CMS 4.0.0+ or 5.0.0+.
@@ -54,13 +58,13 @@ Go to the Plugin Store in your project’s Control Panel and search for “Oh De
54
58
Open your terminal and run the following commands:
55
59
56
60
``` bash
57
- # go to the project directory
61
+ # Go to the project directory
58
62
cd /path/to/my-project.test
59
63
60
- # tell Composer to load the plugin
64
+ # Tell Composer to load the plugin
61
65
composer require perfectwebteam/craft-ohdear-application-health
62
66
63
- # tell Craft to install the plugin
67
+ # Tell Craft to install the plugin
64
68
./craft plugin/install ohdear-application-health
65
69
```
66
70
@@ -89,6 +93,7 @@ return [
89
93
'addSecurityHeadersCheck' => true,
90
94
'addPhpVersionCheck' => true,
91
95
'addAdminUsersCheck' => true,
96
+ 'addDiskUsageCheck' => false,
92
97
],
93
98
'oldestUpdateWarningDays' => 30,
94
99
'minimumPhpVersion' => '8.1.0',
@@ -103,7 +108,9 @@ return [
103
108
'inactiveAdminThreshold' => '-1 year',
104
109
'gitRepoPath' => '@root',
105
110
'queueTotalThreshold' => 10,
106
- 'queueFailedThreshold' => 2
111
+ 'queueFailedThreshold' => 2,
112
+ 'diskUsagePath' => '/',
113
+ 'diskUsageThreshold' => 90,
107
114
];
108
115
```
109
116
0 commit comments