Monitoring Client

Provides information about the Craft installation via an API

Goal

This plugin is very simple and just provides a JSON of all the versions of plugins, PHP and so on.

The goal is, to have the client installed on all your Craft websites and using a central server plugin, which aggregates and interprets the data.

Requirements

This plugin requires Craft CMS 4.0.0 or later, and PHP 8.0 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “monitoring-client”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require vandres/craft-monitoring-client

# tell Craft to install the plugin
./craft plugin/install monitoring-client

Generate key

You can use whatever key you want (except empty string). If you like, the plugin can create a key for you. You will need to copy and paste it yourself.

php craft monitoring-client/api/key

Configuration

You can use the settings dialog in the control panel. But I would recommend creating a monitoring-client.php in your config folder.

return [
    'clientSecret' => \craft\helpers\App::env('MONITORING_CLIENT_SECRET'),
    'secretsInPlainText' => false,
];

Usage

By installing and configuring the plugin, the information of the installation gets available via an endpoint. You can access it manually like the following:

curl \
    --location 'https://my-project.test/monitoring/api/system-report' \
    --header 'Content-Type: application/json' \
    --data-raw '{
      "clientSecret": "Your secret"
    }'

Support my work

PayPal: https://www.paypal.com/donate/?hosted_button_id=3WDU85HZCKMPA

Buy me a coffee: https://buymeacoffee.com/vandres

Supporter

  1. Ambition Creative: Icons
Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
29
Version
1.1.2
License
Craft
Compatibility
Craft 3, Craft 4, Craft 5
Last release
February 18, 2025
Activity (30 days)
1
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs