jordillonch / WebUIMonitor

WebUIMonitor is the user interface that shows errors in your system in real time and plays a sound if there is a critical error.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is "WebUIMonitor"?

WebUIMonitor is the user interface that shows errors in your system in real time and plays a sound if there is a critical error.

This component has two parts. One is a PHP web socket server that must be run on a server listening to web socket clients and RabbitMQ request. The other part is a client developed in Javascript that runs on the browser and connects to the server displaying messages.

Requirements

  • PHP 5.3.2 and up.
  • RabbitMQ or ZMQ.

Libraries and services used

  • PHP
    • Silex
    • Symfony Components:
      • YAML
    • php-websocket
    • PhpAmqpLib
    • Monolog
  • ExtJS 4
  • WebSockets
  • RabbitMQ/ZMQ+OpenPGM

Installation

The best way to install is to clone the repository and then configure as you need. See "Configuration" section.

After cloning you must install dependencies using "composer":

php composer.phar update

Usage

Start websocket server:

php app/websocket_server.php

In your browser write the url where project is found, example:

http://localhost/WebUIMonitor/web/index.php

Configuration

All configuration is done using a YAML file.

Config file has 3 sections:

  • class:

    • class name that subscribe to the channel to get messages.
  • subscriber:

    • channel where subscribe.
  • websocket:

    • host and port where websocket server will run.

See config file for more details.

Extra notes

Use of ZMQ is discontinued because a memory leak using ZMQ with OpenPGM PUB/SUB.

About

WebUIMonitor is the user interface that shows errors in your system in real time and plays a sound if there is a critical error.

License:MIT License


Languages

Language:JavaScript 99.9%Language:PHP 0.1%Language:Shell 0.0%Language:Ruby 0.0%Language:Python 0.0%