kalakotra/silverstripe-monitoring-client

SilverStripe 6 monitoring – passive data endpoint (pull model)

Maintainers

Package info

github.com/kalakotra/silverstripe-monitoring-client

Type:silverstripe-vendormodule

pkg:composer/kalakotra/silverstripe-monitoring-client

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-04-22 07:32 UTC

This package is auto-updated.

Last update: 2026-05-12 13:57:44 UTC


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