Download the PHP package thecodingmachine/laravel-server-monitor-plugin-notification-by-host without Composer
On this page you can find all versions of the php package thecodingmachine/laravel-server-monitor-plugin-notification-by-host. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thecodingmachine/laravel-server-monitor-plugin-notification-by-host
More information about thecodingmachine/laravel-server-monitor-plugin-notification-by-host
Files in thecodingmachine/laravel-server-monitor-plugin-notification-by-host
Package laravel-server-monitor-plugin-notification-by-host
Short Description Monitor servers plugin to send notification by host
License MIT
Homepage https://github.com/thecodingmachine/laravel-server-monitor-plugin-notification-by-host
Informations about the package laravel-server-monitor-plugin-notification-by-host
Plugin to Laravel server Monitor
This plugin is to use a different notification way by host for the Laravel server monitor developed by spatie
Installation
You can install this package via composer using this command:
Next, you must install the service provider:
You must publish the config-file with:
This is the contents of the published config file:
To use the plugin, you must change the server-monitor.php with the next values:
Use it
By default, if no custom configuration was configured, this is the global parameters set in server-monitor.php which will used. You can change the configuration by host (mail receiver, slack channel ...), and the channel by error type by host.
To apply this, there is 2 new commands add to artisan:
- Add notification for a specific host: php artisan server-monitor:add-notification-host
- List all notification by host: php artisan server-monitor:list-notifications