PHP Supervisor Process Dashboard: Monitor and control processes running on a servers

Recommend this page to a friend!
  Info   Documentation   View files (12)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-12-12 (7 months ago) Not yet rated by the usersTotal: 66 All time: 9,700 This week: 284
Version License PHP version Categories
jaxon-supervisor 0.0.1BSD License5PHP 5, System information, Systems ad..., L..., A...
Description Author

This package can monitor and control processes running on servers.

It provides a plugin for the Jaxon framework that can display the status of processes on one or more servers that being monitored.

It uses AJAX to send requests to query the processe statuses and updates the process statuses on the current Web page.

The package can also send commands to the servers to start and stop the server processes.

Picture of Thierry Feuzeu
  Performance   Level  
Name: Thierry Feuzeu <contact>
Classes: 13 packages by
Country: Cameroon Cameroon
Age: 43
All time rank: 23412 in Cameroon Cameroon
Week rank: 713 2 in Cameroon Cameroon
Innovation award
Innovation award
Nominee: 1x

Details

A Supervisor dashboard based on the Jaxon ajax library

There are already several packages that allow to control multiple Supervisor instances from a single dashboard. However, all these packages are standalone applications, with all the constraints that this implies in terms of installation, configuration, authentication, etc.

This package allows to insert a dashboard for Supervisor into an existing PHP application. Thanks to the Jaxon library, it installs and runs in a page of the application, which can be loaded with an HTTP or an Ajax request. All its operations are performed with Ajax requests.

Features

  • Show the processes on Supervisor servers with status and running time.
  • Start, restart or stop a process on a server.
  • Start, restart or stop all the processes on a server.
  • Start or stop refresh timer.
  • Trigger refresh.

Documentation

  1. Install the jaxon library so it bootstraps from a config file and handles ajax requests. Here's the documentation.
  2. Install this package with Composer. If a Jaxon plugin exists for your framework, you can also install it. It will automate the previous step.
  3. Declare the package and the Supervisor servers in the `app` section of the Jaxon configuration file.
    'app' => [
        // Other config options
        // ...
        'packages' => [
            Lagdo\Supervisor\Package::class => [
                'servers' => [
                    'first_server' => [
                        'url' => 'http://192.168.1.10',
                        'port' => '9001',
                    ],
                    'second_server' => [
                        'url' => 'http://192.168.1.11',
                        'port' => '9001',
                    ],
                ],
            ],
        ],
    ],

  1. Insert the CSS and javascript codes in the HTML pages of your application using calls to `jaxon()->getCss()` and `jaxon()->getScript(true)`.
  2. In the page that displays the dashboard, insert its HTML code with a call to `jaxon()->package(\Lagdo\Supervisor\Package::class)->getHtml()`. Two cases are then possible.

    - If the dashboard is displayed on a dedicated page, make a call to `jaxon()->package(\Lagdo\Supervisor\Package::class)->ready()` when loading the page.

    - If the dashboard is loaded with an Ajax request in a page already displayed, execute the javascript code returned the call to `jaxon()->package(\Lagdo\Supervisor\Package::class)->getReadyScript()` when loading the page.

Notes

The HTML code of the package uses the Bootstrap CSS framework, qui which must also be included in the page. It is entirely contained in a <div class="col-md-12"> tag.

Support for other frameworks will be added in future releases.

Contribute

  • Issue Tracker: github.com/lagdo/jaxon-supervisor/issues
  • Source Code: github.com/lagdo/jaxon-supervisor

License

The project is licensed under the BSD license.

  Files  
File Role Description
ajax (1 file)
config (1 file)
src (2 files)
templates (2 directories)
.styleci Data Auxiliary data
composer.json Data Auxiliary data
LICENSE Lic. License text
README.md Doc. Documentation

  Files  /  ajax  
File Role Description
   Client.php Class Class source

  Files  /  config  
File Role Description
   supervisor.php Class Class source

  Files  /  src  
File Role Description
   Client.php Class Class source
   Package.php Class Class source

  Files  /  templates  
File Role Description
codes (1 file)
views (1 directory)

  Files  /  templates  /  codes  
File Role Description
   script.latte Data Auxiliary data

  Files  /  templates  /  views  
File Role Description
bootstrap (3 files)

  Files  /  templates  /  views  /  bootstrap  
File Role Description
   home.latte Data Auxiliary data
   process.latte Data Auxiliary data
   server.latte Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:0
All time:9,700
This week:284

For more information send a message to info at phpclasses dot org.