Download the PHP package yidas/mtr-database without Composer

On this page you can find all versions of the php package yidas/mtr-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mtr-database

MTR Database for PHP

MTR centralized monitoring dashboard with agent deployment

Latest Stable Version License

OUTLINE


DEMONSTRATION


INTRODUCTION

Easy to deploy agents and collect MTR data into a database for monitoring via a web dashboard with charts.

Basic Flow


REQUIREMENTS

This library requires the following:


INSTALLATION

Download

Composer Installation

Using Composer to install is the easiest way with auto-installer:

Wget Installation

You could see Release for picking up the package with version, for example:

After download, uncompress the package:

SETUP

Database Setup

After the download, you could start to set up the config.inc.php with your database connection:

Then run install.php which will help you to install the database & table:

Agent Setup & Launch

The default setting of the agent can be configurated in config.inc.php:

After the setting, enjoy to run or set launch.php with your prefered arguments in crontab:

Set crontab into /etc/cron.d/mtr-database:

The default batch period is configured to be 10 minutes, so we can set the batch to be executed every 10 minutes.

API for collector & agents

Regarding the introduction structure diagram, it's better to collect agents' MTR data via API (Default is database).
The endpoint path of collector (reportUrl) is /collect.php, you could place the project in the web path such as /var/www/html/mtr-database/index.php.

Configuration for collector, the database setting is required:

Configuration for agents:

Dashboard

The endpoint path of MTR Dashboard is /index.php and it's disable by default, you could place the project in the web path such as /var/www/html/mtr-database/index.php.

Turn the enabled on and set the username and password for the authentication in config.ini.php, the database setting is required:

categories will enable you to query specific data by category settings or query all data with default blank values.


ADVANCED USAGE

Agent Configuration

The configuration file config.inc.php allows you to set the default settings for MTR launching. However, you can also specify parameters immediately in the command to be run.

Host

Host parameter allows you to specify the target host to be tracked with -h --host parameter:

Period

Period argument allocate the number of minutes between crontab intervals with -p --period parameter:

In addition, Count argument will distribute the sending count between the interval according to the Period setting with -c --report-cycles parameter:

TCP

TCP argument allows you to use MTR TCP mode with specified port, -T --tcp for enabling TCP mode and -P --port for setting port:

Category

Category allows to categorize each monitor command and supports filtering from the dashboard, which also can be achieved by using the --category parameter:

Purge

Running purge.php will delete old records older than the given number of days. You can use the -d --days parameter to set with (default is 90 days):


REFERENCES


All versions of mtr-database with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yidas/mtr-database contains the following files

Loading the files please wait ....