PHP code example of watchowl / cake-server-monitor

1. Go to this page and download the library: Download watchowl/cake-server-monitor 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/ */

    

watchowl / cake-server-monitor example snippets


Configure::write(
    'CakeServerMonitor.email.recipients',
    ['[email protected]','[email protected]']
);

Configure::write(
    'CakeServerMonitor.email.profile',
    'debug'
);

Configure::write(
    'CakeServerMonitor.commands',
    [
        'disk_space' => 'WatchOwl\CakeServerMonitor\CommandDefinition\DiskSpace',
        'mysql' => 'WatchOwl\CakeServerMonitor\CommandDefinition\MySql',
        'nginx' => 'WatchOwl\CakeServerMonitor\CommandDefinition\Nginx',
        'php5fpm' => 'WatchOwl\CakeServerMonitor\CommandDefinition\Php5Fpm',
    ]
);