Download the PHP package imsamurai/cakephp-monitoring-plugin without Composer
On this page you can find all versions of the php package imsamurai/cakephp-monitoring-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imsamurai/cakephp-monitoring-plugin
More information about imsamurai/cakephp-monitoring-plugin
Files in imsamurai/cakephp-monitoring-plugin
Package cakephp-monitoring-plugin
Short Description Use it if you want to wrap model methods with cache
License MIT
Homepage http://github.com/imsamurai/cakephp-monitoring-plugin
Informations about the package cakephp-monitoring-plugin
API Documentation
Check out Monitoring API Documentation
Abstract
Coordinator for any checker scripts. With this plugin you can unify periodic checkers for some of your services/data/etc, get mail in case of failure, store checker logs in DB.
Installation
cd my_cake_app/app
git clone git://github.com/imsamurai/cakephp-monitoring-plugin.git Plugin/Monitoring
or if you use git add as submodule:
cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-monitoring-plugin.git" "app/Plugin/Monitoring"
then add plugin loading in Config/bootstrap.php
CakePlugin::load('Monitoring', array('bootstrap' => true));
add tables from Config/Schema/monitoring.sql
include https://github.com/symfony/Process, https://github.com/mtdowling/cron-expression in your project, for ex with composer (tested with 2.3 version)
Configuration
Write global config if you need to change plugin config (see plugin bootstrap.php)
Usage
Use Monitoring model for manage checkers in DB.
Each checker name in DB must be a model that extends MonitoringChecker and implements check method.
Coordinator will run this method and store result in DB log.
In case of error your checker may return false.
Put Console/cake Monitoring.monitoring run in the cron, for ex each 1-5 minutes (depends on your needs)
For auto add available checkers to db (inactive) run Console/cake Monitoring.monitoring update
Wiki
Also check out wiki.
All versions of cakephp-monitoring-plugin with dependencies
mtdowling/cron-expression Version 1.0.2
imsamurai/cakephp-serializable-behaviour Version 1.0.*
imsamurai/cakephp-advancedshell Version 1.3.*
phpunit/php-invoker Version 1.1.*





