ofertix/web-ui-monitor

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

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 9

Forks: 3

Open Issues: 0

Language:JavaScript

dev-master 2012-07-08 11:08 UTC

This package is not auto-updated.

Last update: 2024-04-13 11:46:05 UTC


README

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.