2017 © Pedro Peláez
 

library scrutiny

An agnostic monitoring system written in PHP. You can monitor any service, and report it anywhere (pushover.net for example) it if goes down.

image

scottrobertson/scrutiny

An agnostic monitoring system written in PHP. You can monitor any service, and report it anywhere (pushover.net for example) it if goes down.

  • Wednesday, February 12, 2014
  • by scottrobertson
  • Repository
  • 2 Watchers
  • 12 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Scrutiny

Build Status Dependency Status Version Downloads, (*1)

An agnostic monitoring system written in PHP. Monitor any service, and report on it's status., (*2)

Each Reporter can subscribe to Events from Services. There are 3 events: up, down, and recovery. Services can collect any meta data they want, and Reporters will have access to this data. This allows you to collect stats for instance., (*3)

Install

{
    "require" : {
        "scottrobertson/scrutiny" : "dev-master"
    }
}

<?php include __DIR__ . '/vendor/autoload.php'; $scrutiny = new \ScottRobertson\Scrutiny\Client(); // Setup Services to monitor $scrutiny->addService(new \ScottRobertson\Scrutiny\Service\Http('http://example.com')); // Set options on a service $mongodb = new \ScottRobertson\Scrutiny\Service\MongoDB(); $mongodb->setName('MongoDB'); $mongodb->setInterval(20); $mongodb->setDownMessage('ER MER GERD MORGOR ER DORN'); $scrutiny->addService($mongodb); // Setup Reporters $scrutiny->addReporter(new \ScottRobertson\Scrutiny\Reporter\Post('http://api.example.com')); $scrutiny->addReporter( new \ScottRobertson\Scrutiny\Reporter\Pushover( 'token', 'user' ) ); $scrutiny->watch();

Current Services

  • MySQL
  • MongoDB
  • Http (Checking if a website is available)

Current Reporters

  • Pushover.net
  • Post

Example Use case

For example, if you wanted to monitor MySQL, you could setup the Pushover Reporter to subscribe to "down" events. This would mean that if MySQL went down, you would receive a push notification., (*4)

The Versions

12/02 2014

dev-master

9999999-dev http://github.com/scottrobertson/scrutiny

An agnostic monitoring system written in PHP. You can monitor any service, and report it anywhere (pushover.net for example) it if goes down.

  Sources   Download

MIT

The Requires

 

monitor service montitor