PHP code example of jeffersonsimaogoncalves / cakephp-server-monitor
1. Go to this page and download the library: Download jeffersonsimaogoncalves/cakephp-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/ */
jeffersonsimaogoncalves / cakephp-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' => 'JeffersonSimaoGoncalves\CakeServerMonitor\CommandDefinition\DiskSpace',
'mysql' => 'JeffersonSimaoGoncalves\CakeServerMonitor\CommandDefinition\MySql',
'nginx' => 'JeffersonSimaoGoncalves\CakeServerMonitor\CommandDefinition\Nginx',
]
);