MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

Tools

MMO\admin\monitoring · 1 symbol · generated 27 Oct 2026

class

Tools

Tools.php:22

What a person looks at when a reading is not enough: the processes, the connections, the last log lines, the space a site's folders take... One click on the hub's page, one command (php hub.php tool --subject=ovh1 --tool=processes).

class MMO\admin\monitoring\Tools
Namespace
MMO\admin\monitoring
**Every tool only reads, and every one is written here.** The hub never runs a command it was sent: a page or an api that could would be a shell on every server of the fleet for whoever reaches it. A tool's paths come from the target's declaration (deploy.json), quoted. Changing something stays mmo.admin's job (`php scripts/admin.php`), with its plan, its confirmation and its journal.
Tools::For($server); // ['processes' => 'top processes', ...] Tools::Run($hub, $server, 'processes'); // ['output' => ' PID USER ...', 'ok' => true, ...]

Index

SERVERtool => [label, command]: what can be looked at on a server
TARGETtool => [label, command]: what can be looked at of a site; {placeholders} are the target's paths, quoted
Command($hub, $subject, $tool) static
Database($hub, $target) static
For($subject) static
Http($hub, $target) static
Run($hub, $subject, $tool) static

Constants2

SERVER

tool => [label, command]: what can be looked at on a server

const SERVER = […10 items]

TARGET

tool => [label, command]: what can be looked at of a site; {placeholders} are the target's paths, quoted

const TARGET = […9 items]

Methods5

Command($hub, $subject, $tool)

staticTools.php:93
static function Command( MMO\admin\monitoring\Hub $hub, MMO\admin\entities\Server|MMO\admin\entities\Target $subject, string $tool ): string
$hubHub
$subjectServer | Target
$toolstring
returnsstringthe command of $tool on $subject, its paths quoted

Database($hub, $target)

staticTools.php:127
protected static function Database(MMO\admin\monitoring\Hub $hub, MMO\admin\entities\Target $target): string
$hubHub
$targetTarget
returnsstring

For($subject)

staticTools.php:51
static function For(MMO\admin\entities\Server|MMO\admin\entities\Target $subject): array
$subjectServer | Target
returnsarraystring> tool => label, for $subject

Http($hub, $target)

staticTools.php:112
protected static function Http(MMO\admin\monitoring\Hub $hub, MMO\admin\entities\Target $target): string
$hubHub
$targetTarget
returnsstring

Run($hub, $subject, $tool)

staticTools.php:68
static function Run( MMO\admin\monitoring\Hub $hub, MMO\admin\entities\Server|MMO\admin\entities\Target $subject, string $tool ): array
$hubHub
$subjectServer | Target
$toolstringone of For
returnsarraystring, label: string, subject: string, command: string, output: string, ok: bool, seconds: float}
throwsfor a tool $subject does not have