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

Configuration

You can use the settings dialog in the control panel. But I would recommend creating a contact-form-extended.php[monitoring-client.php](../../config/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

Credits

Icon by Pexelpy on freeicons.io

Installation Instructions

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

Reviews

This plugin doesn't have any reviews.

Active Installs
5
Version
1.1.1
License
Craft
Compatibility
Craft 4, Craft 5
Last release
January 7, 2025
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs