Monitoring Client
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
- Ambition Creative: Icons
To install this plugin, copy the command above to your terminal.
This plugin doesn't have any reviews.