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

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

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

kalakotra/silverstripe-monitoring-client

最新稳定版本:1.0.0

Composer 安装命令:

composer require kalakotra/silverstripe-monitoring-client

包简介

SilverStripe 6 monitoring – passive data endpoint (pull model)

README 文档

README

Passive monitoring endpoint for SilverStripe 6.
The admin module periodically pulls data from this endpoint - the client does not send anything.

Installation

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

ENV Configuration (.env)

# Secret key - enter the same key in the Project record on the admin side
MONITORING_SECRET_KEY="min-32-random-chars-hex-or-any"

Generate a secure key:

php -r "echo bin2hex(random_bytes(32));"

Endpoint

GET https://client-page.com/silverstripe-monitoring/data?key=<MONITORING_SECRET_KEY>

Example Response

{
    "php_version":       "8.2.15",
    "ss_version":        "6.0.3",
    "ss_recipe_version": "6.0.1",
    "page_count":        84,
    "published_count":   79,
    "draft_count":       5,
    "broken_links":      2,
    "object_count":      14832,
    "table_count":       67,
    "member_count":      12,
    "admin_count":       2,
    "environment":       "live",
    "base_url":          "https://vas-sajt.ba/",
    "default_locale":    "bs_BA",
    "php_memory_limit":  "256M",
    "php_max_execution": 30,
    "disk_free_gb":      42.15,
    "disk_total_gb":     100.0,
    "reported_at":       "2025-04-21 14:30:00"
}

Security

  • The key is validated with hash_equals() for timing-attack protection
  • If MONITORING_SECRET_KEY is not configured, the endpoint returns 500
  • No CMS dependencies - minimal footprint on the client site

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固