不要让您的服务器一味地崩溃
We all dream of servers that need no maintenance at all. But unfortunately in reality this is not the case. Disks can get full, processes can crash, the server can run out of memory...
This package keeps an eye on the health of all your servers. There are a few checks that come out of the box. Adding new checks is a breeze.
When something goes wrong it can notify you via Slack or mail.
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
The full documentation is available on our documentation site.
You can install this package via composer using this command:
composer require spatie/laravel-server-monitor
In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework, you must install the service provider:
// config/app.php
'providers' => [
...
Spatie\ServerMonitor\ServerMonitorServiceProvider::class,
];
You can publish the migrations with:
php artisan vendor:publish --provider="Spatie\ServerMonitor\ServerMonitorServiceProvider" --tag="migrations"
After the migration has been published you can create the hosts and checks tables by running the migrations:
php artisan migrate
You must publish the config-file with:
php artisan vendor:publish --provider="Spatie\ServerMonitor\ServerMonitorServiceProvider" --tag="config"
This is the contents of the published config file:
…
The package doesn't come with any screens out of the box. You may use the Nova package by @paras-malhotra for monitoring servers on Laravel Nova.
Please see CHANGELOG for more information what has changed recently.
To run the tests you'll have to start the included node based dummy ssh server first in a separate terminal window.
cd tests/server
npm install
./start_server.sh
With the server running, you can start testing.
vendor/bin/phpunit
Please see CONTRIBUTING for details.
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
The code to execute commands on a remote server was copied from Envoy.
The MIT License (MIT). Please see License File for more information.
暂无开放 Issues,或尚未同步最近议题。