定制 devskio/typo3_ohdear_health_check 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devskio/typo3_ohdear_health_check

Composer 安装命令:

composer require devskio/typo3_ohdear_health_check

包简介

Oh Dear Health Check extension for TYPO3

关键字:

README 文档

README

The TYPO3 OhDear Health Check Extension allows you to monitor the health and performance of your TYPO3 application and server using Oh Dear. With this extension, you can receive alerts and notifications for critical issues, ensuring the smooth operation of your TYPO3 application.

Features

  • Disk Space: Monitors the disk space usage of your server.
  • PHP Error Log Size: Checks the size of the PHP error log.
  • TYPO3 Error Log Size: Checks the size of the TYPO3 error log.
  • MySQL Database Size: Checks the size of the MySQL database.
  • Forgotten Files on the Server: Scans the document root for forgotten files.
  • TYPO3 Database Log: Retrieves the TYPO3 database log.
  • TYPO3 Version: Retrieves the installed TYPO3 version.

Requirements

  • TYPO3 version 11.5.0 or later.
  • An active Oh Dear account with the necessary API credentials.

Installation

  1. Run the following command to require the OhDear Health Check Extension via Composer: composer require devskio/typo3_ohdear_health_check
  2. Compare and update the database table and field definitions
  3. Include the static TypoScript of the extension. EXT:typo3_ohdear_health_check/Configuration/TypoScript/setup.typoscript
  4. Once installed, go to the extension configuration settings and provide your Oh Dear API credentials together with Health Report Secret. Optionally, you can enable or disable the monitoring of specific checks together with setting the alert thresholds.
  5. [Optional] If you want to have nice Health Report URL, you can add a routeEnhancer for OhDear Health Check Extension in your site configuration yaml file.
...
routeEnhancers:
  PageTypeSuffix:
    map:
      healthcheck: 1689678601
...

Usage

  1. After installing and configuring the extension, you can access the OhDear Health Check dashboard.
  2. In Application Health you have to set the URL of the health check endpoint. The URL is https://yourdomain.com/?type=1689678601. In case you have added the routeEnhancer, you can use https://yourdomain.com/healthcheck.
  3. The dashboard displays the current status of various monitored aspects, such as disk space, PHP Error Log Size, TYPO3 Error Log Size, MySQL Database Size, Forgotten Files on the Server, TYPO3 Database Log, TYPO3 Version.
  4. Configure the desired alert thresholds and notification settings in OhDear.
  5. When an issue is detected, you will receive alerts through your preferred communication channels (e.g., email, Slack, SMS) based on your Oh Dear configuration.

Widget

You can add the OhDear Health Check widget to your TYPO3 dashboard. Widget is using the OhDear API to fetch basic Oh Dear checks and custom Application health checks.

In order to use the widget, you need to provide the Oh Dear API Key and Oh Dear Site ID in the extension configuration settings.

TYPO3 OhDear Health Check Widget

TYPO3 OhDear Health Check Widget

Customization

Adding Custom Checks

You can add custom checks by extending the AbstractCheck and registering your custom check(s) in the ext_localconf.php file.

$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['typo3_ohdear_health_check']['checks'][] = \Vendor\MyExtension\HealthCheck\CustomCheck::class;

Customizing Check Results Array

You can customize the result array of all checks by listening to the HealthCheckAfterRunEvent event.

# EXT:my_extension/Configuration/Services.yaml
services:
  # ...
  MyVendor\MyExtension\EventListener\HealthCheckAfterRunEventListener:
    tags:
      - name: event.listener
        method: handleEvent
        identifier: 'myHealthCheckAfterRunEventListener'
        event: Devskio\Typo3OhDearHealthCheck\Events\HealthCheckAfterRunEvent

Contributing

Contributions to the TYPO3 OhDear Health Check Extension are welcome! If you encounter any bugs, have suggestions, or want to contribute new features, please submit a pull request or open an issue in the GitHub repository.

License

This TYPO3 OhDear Health Check Extension is released under the MIT License.

devskio/typo3_ohdear_health_check 适用场景与选型建议

devskio/typo3_ohdear_health_check 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.14k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「TYPO3 CMS」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 devskio/typo3_ohdear_health_check 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 devskio/typo3_ohdear_health_check 我们能提供哪些服务?
定制开发 / 二次开发

基于 devskio/typo3_ohdear_health_check 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 13.14k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-07-20