承接 elgentos/magento2-oh-dear-checks 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

elgentos/magento2-oh-dear-checks

Composer 安装命令:

composer require elgentos/magento2-oh-dear-checks

包简介

Magento 2 module for Oh Dear checks integration.

README 文档

README

This Magento 2 module extends the Vendic OhDear module with additional application health checks.

Installation

composer require elgentos/magento2-oh-dear-checks
bin/magento module:enable Elgentos_OhDearChecks
bin/magento setup:upgrade

Available Checks

Sansec Shield Security Check

This check verifies that the Sansec Shield security extension is properly installed, enabled, and configured:

  • Module Installation: Checks if the Sansec_Shield module is installed
  • Module Enablement: Verifies the module is enabled via sansec_shield/general/enabled configuration
  • License Configuration: Ensures a license key is configured via sansec_shield/general/license_key

Check Results:

  • OK: Module is installed, enabled, and has a license key configured
  • ⚠️ WARNING: Module is installed and enabled but license key is missing
  • FAILED: Module is not installed or not enabled

Indexer Backlog Check

This check monitors the backlog size for all scheduled indexers in your Magento store:

  • Backlog Monitoring: Tracks the number of pending items for each scheduled indexer
  • Status Tracking: Reports the current status of each indexer

Check Results:

  • OK: All indexers are up to date or have minimal backlog (< 1,000 items)
  • ⚠️ WARNING: High backlog detected (1,000 - 9,999 items)
  • FAILED: Critical backlog detected (≥ 10,000 items)

Metadata Includes:

  • Backlog size per indexer
  • Maximum backlog across all indexers
  • Number of indexers with backlog

HTTP Cache Hosts Check

This check verifies that HTTP cache hosts (Varnish) are properly configured for cache clearing:

  • Configuration Check: Verifies that http_cache_hosts is configured in env.php
  • Validation: Ensures at least one host is configured with both host and port parameters

Check Results:

  • OK: HTTP cache hosts are properly configured
  • FAILED: HTTP cache hosts are not configured or misconfigured

Metadata Includes:

  • Configuration status
  • Number of configured hosts
  • List of configured hosts (without sensitive details)

Example Configuration in env.php:

'http_cache_hosts' => [
    [
        'host' => '127.0.0.1',
        'port' => '6081'
    ]
]

Configuration

You can disable any check by adding configuration to your env.php:

'ohdear' => [
    'Elgentos\\OhDearChecks\\Checks\\SansecShield' => [
        'enabled' => false
    ],
    'Elgentos\\OhDearChecks\\Checks\\IndexerBacklog' => [
        'enabled' => false,
        // Optional: customize which indexers to check
        'indexer_ids' => [
            'catalog_product_price',
            'catalog_category_product',
            'catalogsearch_fulltext',
            // ... add or remove indexer IDs as needed
        ],
        // Optional: global default thresholds (used when no per-indexer threshold is set)
        'warning_threshold' => 1000,
        'critical_threshold' => 10000,
        // Optional: per-indexer thresholds (override global defaults)
        'thresholds' => [
            'catalog_product_price' => [
                'warning' => 500,
                'critical' => 5000
            ],
            'catalogsearch_fulltext' => [
                'warning' => 2000,
                'critical' => 15000
            ],
            // ... configure thresholds for specific indexers
        ]
    ],
    'Elgentos\\OhDearChecks\\Checks\\HttpCacheHosts' => [
        'enabled' => false
    ]
]

Indexer Backlog Configuration Options

  • indexer_ids (array): List of indexer IDs to monitor. If not specified, a default list of 10 common indexers is used.
  • warning_threshold (int): Global warning threshold. Default: 1,000 items. Used when no per-indexer threshold is configured.
  • critical_threshold (int): Global critical threshold. Default: 10,000 items. Used when no per-indexer threshold is configured.
  • thresholds (array): Per-indexer threshold configuration. Each indexer can have its own warning and critical values that override the global defaults.

Priority Order:

  1. Per-indexer threshold (if configured)
  2. Global threshold (if configured)
  3. Default threshold (1,000 for warning, 10,000 for critical)

Contributing

Feel free to submit pull requests with additional security and health checks for Magento 2.

elgentos/magento2-oh-dear-checks 适用场景与选型建议

elgentos/magento2-oh-dear-checks 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 46.09k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 elgentos/magento2-oh-dear-checks 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-06