Mconnect Store Health Check for Magento 2 (Free)
   

Magento 2 Store Health Check extension

Mconnect Store Health Check for Magento 2 (Free)

Free module that runs 14 read-only checks on your Magento 2 store, from cron and indexers to admin security and table sizes, and shows the result in the admin and on the command line.

  • 14 checks with OK, WARN or FAIL and a fix hint for each
  • Report page in the admin, under the System menu
  • bin/magento mconnect:health with table or JSON output
  • Read-only: changes nothing, sends no data anywhere
  • Free and open source (MIT license)
  • InstantHelp Center
  • 90 DaysFree Support
  • FreeLifetime Updates
  • Meet MagentoStandards

Product Description

Many Magento store problems stay quiet until a customer notices. Cron stops, and order emails, price rules and scheduled reindexing stop with it. An indexer goes invalid and products drop out of category pages. A cache type gets switched off during debugging and stays off. Log files and tables such as customer_visitor grow until the disk or the database is full.

Mconnect Store Health Check for Magento 2 runs 14 read-only checks on your store and reports OK, WARN or FAIL for each one, with a short note on how to fix it. You see the report in the admin under System > Tools > Store Health Check, or on the command line with bin/magento mconnect:health.

The command can also print JSON and exits with 1 when any check fails, so you can call it from your own monitoring or a cron script.

Video guide

What the module does

  • Cron last run: WARN when the last cron job started more than 15 minutes ago, FAIL after 60 minutes or when no job has ever run.
  • Cron jobs stuck in "running" for more than 1 hour, and cron jobs that ended with an error in the last 24 hours.
  • Indexers that need a reindex (FAIL) and disabled cache types.
  • Developer mode on the store, the default /admin path, and Magento_TwoFactorAuth disabled or missing.
  • Magento release line older than 2.4.6, with a link to Adobe's release page, and PHP below 8.1.
  • Large tables (customer_visitor, report_event, report_viewed_product_index, cron_schedule, quote, magento_bulk, magento_operation) and large files in var/log.
  • Active admin users with no login in 90 days.
  • The search engine set in catalog/search/engine answers a ping, the same call as the "Test Connection" button.
  • If one check cannot run, it shows WARN with the error text and the rest of the report still runs.

Settings

Stores > Configuration > M-Connect Media > Store Health Check:

  • Enabled (default Yes): turns the admin report page on or off. The CLI command works either way.
  • Large table: rows (default 1000000) and Large table: size in MB (default 1024).
  • Log file: size in MB (default 500).

Access to the report page is controlled by its own admin role resource, so you can choose which admin users see it.

What it does not do

It changes nothing. It does not reindex, clear caches, delete rows or rotate logs. It does not know the latest Magento patch number, because a built-in list would go out of date, so it links to Adobe's release page instead. Table row counts are InnoDB estimates. The PHP version shown is the one running the check, so run it from both the admin and the CLI. It is not a security scan and does not look for malware, changed core files or missing patches. It sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-store-health-check vcs https://github.com/mcsventures/magento2-store-health-check
  • composer require mconnect/module-store-health-check:^1.0
  • bin/magento module:enable Mconnect_StoreHealthCheck
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/StoreHealthCheck. The module is free under the MIT license.

Screenshots

  • Store Health Check for Magento 2: The health report in the admin

    The health report in the admin

    System, Tools, Store Health Check runs 14 checks and marks each OK, WARN or FAIL with a plain fix. Here cron has stopped, and three warnings flag developer mode, the admin path and 2FA.

  • The same report in the terminal

    bin/magento mconnect:health prints the same checks as a table, with the commands to run for each problem. It only reads data and changes nothing on the store.

    Store Health Check for Magento 2: The same report in the terminal
  • Store Health Check for Magento 2: JSON output for monitoring

    JSON output for monitoring

    Add --format=json to feed the results into a monitoring script. The command exits with code 1 when any check fails, so a cron job can send an alert.

  • Set your own size limits

    Choose when a table counts as large, by rows or megabytes, and when a log file is too big. The defaults are one million rows, 1 GB per table and 500 MB per log.

    Store Health Check for Magento 2: Set your own size limits

Links

Why Our Extension

Complete eCommerce Solutions

Need help in Magento website?

Do you have a question, problems or custom requirements for your website? Big or small, No matter, we're here if you feel you need support, help or consultation. Talk to us!

Get Free Consultation

Product Description

Many Magento store problems stay quiet until a customer notices. Cron stops, and order emails, price rules and scheduled reindexing stop with it. An indexer goes invalid and products drop out of category pages. A cache type gets switched off during debugging and stays off. Log files and tables such as customer_visitor grow until the disk or the database is full.

Mconnect Store Health Check for Magento 2 runs 14 read-only checks on your store and reports OK, WARN or FAIL for each one, with a short note on how to fix it. You see the report in the admin under System > Tools > Store Health Check, or on the command line with bin/magento mconnect:health.

The command can also print JSON and exits with 1 when any check fails, so you can call it from your own monitoring or a cron script.

Video guide

What the module does

  • Cron last run: WARN when the last cron job started more than 15 minutes ago, FAIL after 60 minutes or when no job has ever run.
  • Cron jobs stuck in "running" for more than 1 hour, and cron jobs that ended with an error in the last 24 hours.
  • Indexers that need a reindex (FAIL) and disabled cache types.
  • Developer mode on the store, the default /admin path, and Magento_TwoFactorAuth disabled or missing.
  • Magento release line older than 2.4.6, with a link to Adobe's release page, and PHP below 8.1.
  • Large tables (customer_visitor, report_event, report_viewed_product_index, cron_schedule, quote, magento_bulk, magento_operation) and large files in var/log.
  • Active admin users with no login in 90 days.
  • The search engine set in catalog/search/engine answers a ping, the same call as the "Test Connection" button.
  • If one check cannot run, it shows WARN with the error text and the rest of the report still runs.

Settings

Stores > Configuration > M-Connect Media > Store Health Check:

  • Enabled (default Yes): turns the admin report page on or off. The CLI command works either way.
  • Large table: rows (default 1000000) and Large table: size in MB (default 1024).
  • Log file: size in MB (default 500).

Access to the report page is controlled by its own admin role resource, so you can choose which admin users see it.

What it does not do

It changes nothing. It does not reindex, clear caches, delete rows or rotate logs. It does not know the latest Magento patch number, because a built-in list would go out of date, so it links to Adobe's release page instead. Table row counts are InnoDB estimates. The PHP version shown is the one running the check, so run it from both the admin and the CLI. It is not a security scan and does not look for malware, changed core files or missing patches. It sends no data to any outside server.

Install

Install it with Composer from GitHub:

  • composer config repositories.magento2-store-health-check vcs https://github.com/mcsventures/magento2-store-health-check
  • composer require mconnect/module-store-health-check:^1.0
  • bin/magento module:enable Mconnect_StoreHealthCheck
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile (production mode only)
  • bin/magento cache:flush

You can also download the zip from this page after a free checkout and copy it to app/code/Mconnect/StoreHealthCheck. The module is free under the MIT license.

Screenshots

  • Store Health Check for Magento 2: The health report in the admin

    The health report in the admin

    System, Tools, Store Health Check runs 14 checks and marks each OK, WARN or FAIL with a plain fix. Here cron has stopped, and three warnings flag developer mode, the admin path and 2FA.

  • The same report in the terminal

    bin/magento mconnect:health prints the same checks as a table, with the commands to run for each problem. It only reads data and changes nothing on the store.

    Store Health Check for Magento 2: The same report in the terminal
  • Store Health Check for Magento 2: JSON output for monitoring

    JSON output for monitoring

    Add --format=json to feed the results into a monitoring script. The command exits with code 1 when any check fails, so a cron job can send an alert.

  • Set your own size limits

    Choose when a table counts as large, by rows or megabytes, and when a log file is too big. The defaults are one million rows, 1 GB per table and 500 MB per log.

    Store Health Check for Magento 2: Set your own size limits

Links

More Information
List Page Point Runs 14 read-only checks on cron, indexers, cache, admin security and table sizes, in the admin and from bin/magento.
$0.00

Pre-Sale Enquiry

Do you have an question? Please ask us. We will respond you within 24 hours. Create a support ticket.

Need Customization?

Please share your business specific extension customization requirement. Talk to our Magento developer!