Download the PHP package asd-lt/pulse-remote-servers without Composer
On this page you can find all versions of the php package asd-lt/pulse-remote-servers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pulse-remote-servers
Remote Server for Laravel Pulse
Enhance your server stats by adding multiple remote Linux servers to the mix. This feature is designed to incorporate remote servers to Laravel Pulse that do not execute PHP, such as database or cache servers. Servers running PHP are recommended to install their own instance of Laravel Pulse instead.
Installation
Begin by installing the package via Composer:
Authentication
Ensure SSH key authentication is set up for accessing the remote server. The Remote Server package assumes the remote server is running Linux. It is compatible with both Mac and Linux servers for your local Larvel Pulse installation.
Register the Recorder
In your pulse.php
configuration file, incorporate the \Asd\Pulse\RemoteServer\Recorders\RemoteServers
class with the desired settings:
Don't forget to run the pulse:check
command to start recording.
Configuration Notes
server_name
: Specify the name of the server as it should appear in the server stats.server_ssh
: Enter the SSH command to connect to the server (ssh user@ipaddress
). You can also include options like-p 2222
for non-standard ports.-
query_interval
: Define the interval for querying the remote server's stats, in seconds.- accepts array of intervals for each pulse server. Server name as key and interval as value.
-
query_times
: Define the time`s second for querying the remote server's stats- accepts array of times for each pulse server. Server name as key and time`s second as value.
directories
: Specify the directories to check for used and available disk capacity. By default, this is set to "/", but you can add multiple directories or change the directory. Note that altering this configuration might impact query performance. For specialized setups, consider forking the repository and adjusting the shell script accordingly.disabled
: Set totrue
to disable the server recorder.
And that's all there is to it!
Credits
@tobiasvielmetter the original author of this package.