Support for additional tests

Created on 5 March 2018, over 6 years ago
Updated 9 September 2024, 2 months ago

I've had very similar code around for a while and just found your module. My version does several checks on the system:

  • Read/write to cache
  • Read/write/delete a public file
  • Read/write/delete a private file
  • Read/write/delete a temporary file

When its URL is hit, it will return a 200 HTTP response code and the current timestamp if all checks pass. It will return a 500 HTTP response code with no response if a check fails. There's a config page to specify which tests to perform. If you choose none of the tests, it would basically do what Health check does now.

It also implements a hook_status_check_status_alter() to allow modules to perform custom tests. I created a sandbox module for it here:

https://www.drupal.org/sandbox/jrb/2949561 →

If you'd like to grab this code and fold it into Health check, you're more than welcome. I could delete that sandbox and create a patch, if you're interested.

I've got a D7 version of this module (not in the sandbox), too, if you wanted to update that version.

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States jrb Raleigh-Durham Area, NC, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024