2017 © Pedro Peláez
 

system beholder-web-client

A simple php monitoring client

image

roger-russel/beholder-web-client

A simple php monitoring client

  • Friday, September 8, 2017
  • by RogerRussel
  • Repository
  • 2 Watchers
  • 3 Stars
  • 686 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 11 Open issues
  • 32 Versions
  • 34 % Grown

The README.md

Beholder Monitor - Php Web Client

Travis:Master Codecov branch Latest Version Packagist Software License, (*1)

Beholder is a simple php monitoring system, this client is made to serve a json response with the current stats of what is been monitored., (*2)

Try Beholder, (*3)

This client can be used with Zabbix and others tools, just setup those to read the json file which this client give., (*4)

Dependencies

  • PHP:5.6, why? For compatibility.
  • Composer
  • Lib Yaml, required only if you use it. See more here. here.

Some modules could have more dependencies, please look at src/Eyes/ModuleName/Readme.md too., (*5)

How Install

Use the command below to add the dependencies inside the composer.json file:, (*6)

$ composer require roger-russel/beholder-web-client;, (*7)

How to use

You can look at a especific model configuration in doc/ModelName folder., (*8)

require 'vendor/autoload.php';

$conf = [
  'eyes' => [
      'DB' => [ // This DB is just an alias, it can be anything
        'type' => 'Db\MySQL', // Model wich will be used, this will be usage Db\Mysql Model.
//      'driver' => 'PDO', // If this option is not setted it will try to use one on this order: PDO, mysqli or mysql. If setted it will force to use it.
        'host' => 'beholder-test-mysql',
        'user' => 'root',
        'password' => 'initial1234',
//      'port' => 3306, // If not setted it will use the default port 3306
        'dbname' => 'beholder_test',
        'querys' => [ // Query that will runned on a test, it will be executed into the following order: CREATE, INSERT, UPDATE, SELECT and DROP.
          'select' => 'select name from user limit 1'
        ]
      ]
  ]
];

$beholder = new BeholderWebClient\Observer($conf);
$beholder->run();

How to Contribute

Contribute is easy. Make a fork and start to code, then do a pull request., (*9)

You can contribute not just in code, you can make a bug report, a issue asking for a feature or simply giving your suggestion., (*10)

How to run locally

With docker is easy and fun!, (*11)

  • Create a docker network

$ docker network create --driver bridge beholder-network, (*12)

  • Build the project and run the container

$ docker-compose build, (*13)

$ docker-compose up, (*14)

  • Enter the container and run composer to install the dependencies

$ docker exec -it beholder-web-client bash, (*15)

$ composer install, (*16)

Or the one liner command:, (*17)

$ docker exec -it beholder-web-client composer install, (*18)

To run the codeception tests

With the docker container running do the following:, (*19)

$ docker exec -it beholder-web-client bash, (*20)

$ codecept run, (*21)

Or the one liner command:, (*22)

$ docker exec -it beholder-web-client codecept run, (*23)

You can run especific tests like the following:, (*24)

$ codecept run nfs, (*25)

$ codecept run unit, (*26)

If you want to run a mysql test, first you need to start the docker mysql container inside tests/mysql/ folder. Then run the following command:, (*27)

$ codecept run mysql, (*28)

License

Apache 2.0 Copyright 2017 Roger Russel, and Alan Yoshida, (*29)

The Versions

08/09 2017

dev-fixMountedBug

dev-fixMountedBug

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

08/09 2017

dev-master

9999999-dev

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

08/09 2017

v0.11.1

0.11.1.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

06/09 2017

v0.11.0

0.11.0.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

05/09 2017

dev-coverage

dev-coverage

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

29/08 2017

dev-BeholderAsscii

dev-BeholderAsscii

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

28/08 2017

v0.10.0

0.10.0.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

25/08 2017

dev-codeCovarege

dev-codeCovarege

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

15/08 2017

v0.9.1

0.9.1.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5

 

The Development Requires

by Roger Russel
by Alan Yoshida

15/08 2017

v0.9.0

0.9.0.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

15/08 2017

v0.8.2

0.8.2.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

10/08 2017

v0.8.1

0.8.1.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

07/08 2017

v0.8.0

0.8.0.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

05/08 2017

dev-Mongo

dev-Mongo

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

05/08 2017

v0.7.6

0.7.6.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

03/08 2017

v0.7.5

0.7.5.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

02/08 2017

v0.7.4

0.7.4.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

02/08 2017

v0.7.3

0.7.3.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

01/08 2017

v0.7.2

0.7.2.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

01/08 2017

v0.7.1

0.7.1.0

A simple php monitoring client

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

by Roger Russel
by Alan Yoshida

01/08 2017

v0.7.0

0.7.0.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

31/07 2017

v0.6.0

0.6.0.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

31/07 2017

dev-improuveDocumentation

dev-improuveDocumentation

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

31/07 2017

v0.5.1

0.5.1.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

27/07 2017

v0.5.0

0.5.0.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

26/07 2017

v0.4.1

0.4.1.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

24/07 2017

v0.4.0

0.4.0.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

21/07 2017

v0.3.0

0.3.0.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

20/07 2017

v0.2.1

0.2.1.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

17/07 2017

v0.0.3

0.0.3.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

08/07 2017

v0.0.2

0.0.2.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel

07/07 2017

v0.0.1

0.0.1.0

A simple php monitoring client

  Sources   Download

The Development Requires

by Roger Russel