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
- On the client site, install
kalakotra/silverstripe-monitoring-client - Set
MONITORING_SECRET_KEYin the client's.env - On the admin site, open
/admin/monitoring→ Add Project - Enter:
- Title – the client name
- Endpoint URL –
https://client.example/ - Secret Key – the
MONITORING_SECRET_KEYvalue from the client's.env
- 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/tasksis available by default only from127.0.0.1or for admins.
For acurlrequest from an external IP, add that IP to theDevAdmin.allowed_ipsYAML 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 50
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-12