Linux 软件免费装
Banner图

Sumotori Dash Agent

开发者 tommybordas
更新时间 2026年9月9日 04:31
PHP版本: 7.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

maintenance multisite management monitoring inventory

下载

1.3.0 1.4.0 1.5.0 1.6.0

详情介绍:

Sumotori Dash Agent is a connector. It links a WordPress site to the monitoring dashboard of your choice — the one you use to keep an eye on the sites you maintain. The plugin ships with no service address. You enter the dashboard URL yourself when pairing, and nothing is transmitted until the site is paired. See the "External services" section below for the exhaustive list of the data exchanged. What the agent does Privacy The agent never transmits passwords, password hashes, file contents, post contents, or backup destination credentials (S3 keys, SFTP passwords, Google Drive tokens and the like). It does however transmit personal data about your administrator accounts: see "External services".

安装:

  1. Install and activate the plugin.
  2. Open "Settings → Dash Agent" (on multisite: "Settings" in the network administration).
  3. Enter the https URL of your dashboard and the pairing code it shows you, then submit.
  4. The site is paired: administration events are reported and the dashboard can query the inventory.
To unlink the site, return to the same screen and click "Disconnect this site": no further data is transmitted. Command-line installation wp plugin activate sumotori-dash-agent wp dash-agent pair --url=https://your-dashboard.example --code=XXXXXX wp dash-agent status wp dash-agent disconnect Pairing without opening wp-admin If you have no shell access to the site, an administrator can start the same pairing over this site's REST API. See "Can a dashboard pair the site without opening wp-admin?" in the FAQ below.

升级注意事项:

1.3.0 The deactivation-protection option is gone. If you had enabled it in an earlier version, delete wp-content/mu-plugins/sumotori-dash-agent.php by hand over FTP or SSH: that leftover file keeps loading the old code and prevents the updated plugin from running.

常见问题:

Does the plugin send anything before pairing?

No. As long as the site is not paired, no event hook is even registered and the inventory REST routes answer 403. The only thing that starts an exchange is an administrator deliberately pairing the site, from the settings screen, from WP-CLI, or through the /pair REST route.

Where is the dashboard address set?

You enter it when pairing. No address is hardcoded in the plugin. If you manage a fleet of sites, you can also enforce it in wp-config.php: define( 'SUMOTORI_DASH_AGENT_URL', 'https://your-dashboard.example' ); The settings screen field then displays that value instead of being editable.

What is left in the database after uninstalling?

Nothing. Deleting the plugin erases the configuration option: the site option, the network option, and any options left on sub-sites.

Can a dashboard pair the site without opening wp-admin?

Yes, since version 1.4.0. An administrator of the site — in practice a dashboard authenticating with an administrator application password the site owner issued to it — can call this site's own REST API: POST /wp-json/sumotori-dash/v1/pair {"url": "https://your-dashboard.example", "code": "XXXX-XXXX"} The agent then performs exactly the same exchange as the settings form: it calls <url>/api/pair and stores the endpoint and secret it gets back. The second accepted body registers the link directly, as wp dash-agent connect does: POST /wp-json/sumotori-dash/v1/pair {"endpoint": "https://your-dashboard.example/api/ingest", "secret": "…"} Send one form or the other, never both. The endpoint must be an https URL and the secret 16 to 512 printable characters with no space. Both forms require the manage_options capability (manage_network_options on a multisite network) — exactly the capability the settings screen already requires. The route therefore grants its caller nothing they could not already do by hand in wp-admin; anyone else gets a 403. A site that is already paired answers 409 and keeps its current link, unless the body also carries "force": true. The answer to a successful call is: {"paired": true, "endpoint": "…", "paired_at": "…", "site_url": "…", "agent_version": "…", "message": "…"} The shared secret is never returned, never logged, and never quoted in an error message. An invalid body gives a 400, a dashboard that cannot be reached or whose answer cannot be read gives a 502. Finally, DELETE /wp-json/sumotori-dash/v1/pair, with the same capability, clears the link: it is the REST equivalent of the "Disconnect this site" button, so a dashboard can withdraw cleanly from a site it no longer manages.

Can the inventory modify my site?

No. Both inventory routes (/inventory and /sites) are read-only: they write no option, schedule no task, execute no command, and include no file whose path would come from the request. The only route that writes anything is /pair, and all it ever writes is the link itself — the dashboard endpoint and the shared secret, the same single option the settings screen saves. It is reserved to administrators of the site, and it touches nothing else.

Does the plugin work on multisite?

Yes. The link is unique for the whole network and is configured from the network administration (manage_network_options capability). The inventory can target any sub-site through the blog_id parameter.

更新日志:

1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.2.0 1.1.0 1.0.0