PHP code example of asd-lt / pulse-remote-servers

1. Go to this page and download the library: Download asd-lt/pulse-remote-servers library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

asd-lt / pulse-remote-servers example snippets


return [
    // Other configurations...

    'recorders' => [
        \Asd\Pulse\RemoteServer\Recorders\RemoteServers::class => [
            [
                'server_name' => "database-server-1",
                'server_ssh' => "ssh [email protected]",
                'query_interval' => 15,
                'directories' => explode(':', env('PULSE_SERVER_DIRECTORIES', '/')),
            ]
        ],
    ]
]

    'query_interval' => [
        'pulse-server-1' => 15,
        'pulse-server-2' => 30,
    ],
    

    'query_times' => [
        'pulse-server-1' => 0,
        'pulse-server-2' => 30,
    ],