What the module does
The module has two parts. The first needs no MageSentinel account: a health page under MageSentinel › Store health, health emails every 15 minutes through Magento cron, an optional weekly summary, and one free test purchase a month from the admin.
The second is the connector, which is off until an administrator switches it on and pastes a token. With it, each check can read the Magento version and mode, third-party modules, enabled payment and shipping methods, cron, indexer and queue state, order counts per hour and recent errors. That is what lets an alert name a likely cause instead of only the step that broke. The connector needs a paid plan or the 14-day trial.
Requirements
Magento Open Source or Adobe Commerce 2.4.x, PHP 7.4 to 8.4, and a working Magento cron: the health emails and the deploy check run from it.
Install
The package is magesentinel/module-monitor on Packagist. From the Magento root, as the user that owns the files:
composer require magesentinel/module-monitor
bin/magento module:enable MageSentinel_Monitor
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode
bin/magento cache:flushOn a store in production mode, setup:di:compile is not optional: without it the connector endpoint answers Cannot instantiate interface. Production mode also needs bin/magento setup:static-content:deploy for your locales after the compile, as with any module that ships admin and storefront files. In developer or default mode you can skip both.
No Composer access? On a paid plan or trial, the store’s page in MageSentinel offers Download the module. Unpack the zip into app/code/MageSentinel/Monitor and run the same bin/magento commands. The source is on GitHub, and the module is also listed on the Adobe Commerce Marketplace.
The health page works as soon as the commands finish. Choose who gets the health emails, and switch on the weekly summary, under Stores › Configuration › MageSentinel › Checkout Monitoring › Health emails. An empty Send to uses the General Contact address.
Get the connector token
- Open the store. In MageSentinel, open the store from Stores.
- Generate the token. In the How this store is watched card, the Store connector row has a Generate button. The same control is on the store’s Edit page, in the Connector section.
- Copy it now. The token is shown once and cannot be displayed again. If you lose it, press Rotate to issue a new one; the old one stops working.
Each store has its own token. An agency with several stores generates one on each store’s page and pastes each into its own Magento admin.
Paste the token in Magento
- Open the settings. In the Magento admin go to Stores › Configuration › MageSentinel › Checkout Monitoring. The module’s own menu links there too, as MageSentinel › Settings. Stay on the Default Config scope: the fields exist only there.
- Switch the connector on. In the MageSentinel connector group, set Enable diagnostics endpoint to Yes.
- Paste the token. Paste it into Access token. Magento stores it encrypted.
- Save. Press Save Config, then flush the cache.
Three more switches sit in the same group. All are off by default, and each only applies to requests that carry this store’s token:
| Setting | What it allows |
|---|---|
| Let MageSentinel cancel its own test orders | Cancels orders the checks placed: from a magesentinel+ address, created in the last hour, not invoiced and not shipped. Cancels, never deletes. |
| Let MageSentinel’s checks past your CAPTCHA | Serves those requests without reCAPTCHA or Magento’s image CAPTCHA. Every other visitor still gets it. |
| Test orders through a hidden payment method | For stores that take only cards or PayPal. The checks see a payment method that takes no money, place an order with it and cancel it within 30 minutes with stock restored. Those orders never show in Sales › Orders. |
With the connector on, a cron job checks every 5 minutes whether the static content version or the installed module versions changed. When a deploy changes them, the module asks MageSentinel for a check straight away, and the run shows Deploy on the store.
Check that it works
In MageSentinel, press Run now on the store’s checkout monitor. When the run finishes, the store’s header shows connector on, and a What the connector sees card lists the Magento version and mode and the PHP version. connector token only means a token exists but the store did not answer.
In the Magento admin, MageSentinel › Store health shows Monitored by MageSentinel once MageSentinel has read the store in the last three hours. Set up, not checking in means the connector is on but nothing has called for three hours: check that the token matches the one in MageSentinel and that the monitor is not paused. Free plan: connector inactive means the workspace is on the Free plan.
From a shell you can call the endpoint MageSentinel reads:
curl -i -H "X-MageSentinel-Token: YOUR_TOKEN" \
https://your-store.example.com/rest/V1/magesentinel/diagnosticsA JSON body means it works. 401 means the connector is switched off or the token does not match. Cannot instantiate interface means setup:di:compile has not run since the install.
Update
composer update magesentinel/module-monitor
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode
bin/magento cache:flushIn production mode, add setup:static-content:deploy after the compile, as for the install. An update does not touch the connector settings or the token.
Disconnect or remove
To close the endpoint, set Enable diagnostics endpoint to No and save: every request is refused from then on. To end it from the MageSentinel side, press Revoke on the store’s Store connector row. Revoking cannot be undone; Generate issues a new token.
To remove the module completely:
bin/magento module:disable MageSentinel_Monitor
composer remove magesentinel/module-monitor
bin/magento setup:upgrade
bin/magento setup:di:compile # production mode
bin/magento cache:flushThe module has no uninstall script, so its settings stay in core_config_data under paths that start with magesentinel/. Delete those rows if you want them gone. Monitoring of the storefront keeps running without the module.
More docs
- How checkout monitoring works: MageSentinel drives a real browser through product, cart, checkout, shipping and payment on your Magento or WooCommerce store, then asserts the business result.
- Failure codes: Each MageSentinel failure has one stable code: STORE, PRODUCT, CART, CHECKOUT, SHIPPING, TAX, PAYMENT, ORDER, NETWORK or INTERNAL. Never a raw exception.
- What UNKNOWN means: MageSentinel never forces an unclear run into PASS or FAIL. UNKNOWN is a first-class outcome for runs that reached no conclusive point, and it never pages.
- Evidence and redaction: A failing MageSentinel run keeps a full-page screenshot, a redacted network log, console errors and Web Vitals. Secrets are stripped as evidence is written.
- Scheduling and alerts: MageSentinel runs the checkout check from once a day on Free to every 5 minutes on Scale and alerts once per PASS/FAIL change, not on every failing check.
- REST API reference: The MageSentinel REST API: authenticate with an API key, list stores, monitors, runs and incidents, and start a checkout check from CI after a deploy.
- Install the WordPress plugin: Install the MageSentinel plugin for WooCommerce from WordPress.org, use its free health page and email alerts, then switch on the connector with a token.
- Webhooks: What a MageSentinel alert webhook sends: one JSON POST per failure, recovery or checkout-method notice, every field, the 10-second timeout and how to secure it.