Download the PHP package magewatch/module-agent without Composer
On this page you can find all versions of the php package magewatch/module-agent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download magewatch/module-agent
More information about magewatch/module-agent
Files in magewatch/module-agent
Package module-agent
Short Description Read-only monitoring agent for Magento 2 that collects health metrics and pushes them to the MageWatch SaaS API.
License OSL-3.0
Homepage https://magewatch.io/docs/install
Informations about the package module-agent
MageWatch Agent for Magento 2
Read-only monitoring agent for Magento 2.4.x (Open Source or Adobe Commerce). A lightweight heartbeat runs every minute (paid) to confirm the store is alive; every five minutes it collects health metrics — indexers, cron, queues, order aggregates, log signals, system resources, and security hygiene — and pushes JSON to MageWatch over HTTPS.
Packagist: magewatch/module-agent
What it is
The MageWatch agent runs inside your Magento store. It does not modify catalog, sales, or customer data. It reports operational signals so your agency dashboard can alert you when indexers stall, crons miss runs, queues back up, orders drop unexpectedly, or logs spike — before your client notices.
What it does NOT do
- Never writes to catalog, sales, or customer tables — collectors are read-only.
- No customer PII — order data is hourly aggregates only (counts and revenue buckets), not individual orders or buyer details.
- No remote code execution — the agent only pushes JSON over HTTPS to your MageWatch ingest endpoint. There is no inbound control channel.
- Open source — every collector is plain PHP under
Model/Collector/. Inspect the code before you install on production.
Install
From your Magento project root:
Then in Magento admin: Stores → Configuration → MageWatch → Agent — paste the site token from your MageWatch dashboard and set the ingest URL (production: https://magewatch.io/api/v1/ingest).
Full step-by-step guide: magewatch.io/docs/install
Architecture and payload schema: docs/AGENT.md (maintainers).
Requirements
- Magento 2.4.x (tested on 2.4.6+)
- PHP 8.1, 8.2, or 8.3
- Outbound HTTPS to your MageWatch API host (e.g.
api.magewatch.ioor your self-hosted ingest URL) - Magento cron running (agent uses the
magewatchcron group)
Useful commands
Frontend monitoring (RUM)
From v1.1.0, the agent can inject a tiny storefront script (paid MageWatch plans) that reports JS errors, funnel activity counters, and Web Vitals to MageWatch. The script loads from https://magewatch.io/rum/v1.js — logic lives on the SaaS so fixes do not require module releases.
- Toggle: Stores → Configuration → MageWatch → Agent → Frontend monitoring (RUM) (default ON).
- Keys:
rum_public_keyis synced automatically via remote config — never paste it manually. - What it collects: sanitized JS error messages, add-to-cart/checkout/success counters, LCP/CLS/INP — no cookies, no PII, no session IDs.
- Disable: set Frontend monitoring to No — removes injection without uninstalling the agent.
Security collector (v1.2.0)
The agent whitelists legitimate Magento pub/ PHP files and compares content hashes against vendor/magento/magento2-base when available. pub/cron.php and other core files no longer false-positive as unexpected PHP; modified core files emit core_pub_php_modified. Deploy fingerprints (static_version, composer_lock_hash) are included in heartbeats for SaaS deploy correlation.
See CHANGELOG.md for release history.
Uninstall
Data & privacy
What the agent collects, how long MageWatch retains it, and DPA terms for agencies:
License
OSL-3.0 — see LICENSE.
All versions of module-agent with dependencies
magento/framework Version *
magento/module-backend Version *
magento/module-config Version *
magento/module-cron Version *
magento/module-indexer Version *
magento/module-sales Version *
magento/module-store Version *