定制 kalakotra/silverstripe-monitoring-admin 二次开发

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

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

kalakotra/silverstripe-monitoring-admin

Composer 安装命令:

composer require kalakotra/silverstripe-monitoring-admin

包简介

SilverStripe 6 monitoring – active pull collector and CMS admin UI

README 文档

README

Active pull collector and CMS admin interface for the SilverStripe 6 monitoring system.
It periodically pulls data from passive client endpoints.

Installation

composer require kalakotra/silverstripe-monitoring-admin
vendor/bin/sake dev/build flush=1

Set Up a New Client

  1. On the client site, install kalakotra/silverstripe-monitoring-client
  2. Set MONITORING_SECRET_KEY in the client's .env
  3. On the admin site, open /admin/monitoringAdd Project
  4. Enter:
    • Title – the client name
    • Endpoint URLhttps://client.example/
    • Secret Key – the MONITORING_SECRET_KEY value from the client's .env
  5. Save, then run a manual pull or wait for cron

Crontab Configuration (on the admin site)

Option A - run sake directly (recommended if you have SSH)

# Every hour - pulls data from all projects
0 * * * * /usr/bin/php /var/www/html/vendor/bin/sake dev/tasks/MonitoringPullTask >> /var/log/monitoring-pull.log 2>&1

Option B - curl the sake task URL

0 * * * * curl -s "https://admin-page.com/dev/tasks/MonitoringPullTask" > /dev/null 2>&1

Option C - cPanel Cron Jobs

Frequency Command
Every hour curl -s "https://admin-page.com/dev/tasks/MonitoringPullTask"

Note: dev/tasks is available by default only from 127.0.0.1 or for admins.
For a curl request from an external IP, add that IP to the DevAdmin.allowed_ips YAML configuration.

Manual Pull (for testing)

vendor/bin/sake dev/tasks/MonitoringPullTask

Status Logic

State Color Condition
Online green Pull within 25h
Warning yellow Pull older than 25h and newer than 48h
Offline red Pull older than 48h or never ran

Errors are counted in ConsecutiveErrors and shown next to the status badge as (Nx).

Collected Data

Category Fields
Versions PHP, SilverStripe framework, recipe-cms
Content Total pages, published, draft, broken links, DB objects, tables
Users Total members, admins
Environment live/dev/test, base URL, locale
System Memory limit, max execution time, free/total disk

Struktura

src/
├── Admin/
│   └── MonitoringAdmin.php           # ModelAdmin – /admin/monitoring
├── Model/
│   └── Project.php                   # DataObject + status/disk badge
├── Service/
│   └── ProjectPullService.php        # Guzzle pull logika
└── Task/
    └── MonitoringPullTask.php        # BuildTask for cron
_config/
└── routes.yml

kalakotra/silverstripe-monitoring-admin 适用场景与选型建议

kalakotra/silverstripe-monitoring-admin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 05 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 kalakotra/silverstripe-monitoring-admin 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-12