Skip to content

d13o/EOS-Testnet-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EOS Testnet monitor

Simple tool to monitor EOS testnet nodes.

Its new Brunch for server side Monitor (Nodejs+MongoDB+Socket.io) which will reduce requests to server. Simple old version you can find here: https://github.com/CryptoLions/EOS-Testnet-monitor/tree/v0.1

Please add line to config.ini for all nodes:
access-control-allow-origin = *
to allow access to monitor

Monitor example: http://jungle.cryptolions.io:9898/monitor/

Features

  • Fast nodes status monitor
  • Telegram bot @JungleTestnet_bot to get notification on node crash.
  • Auto generated server peer list
  • Last transaction monitor.
  • Simple node API

How to install and Use

Will be update shortly

  1. Installing Nodejs v10 and MongoDB
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    sudo apt-get install -y nodejs
    sudo apt-get install mongodb

  2. Create project Dir and install modules
    cd /var/www
    git clone https://github.com/CryptoLions/EOS-Testnet-monitor.git
    cd EOS-Testnet-monitor
    npm install
    chmod 700 start.sh
    chmod 700 stop.sh

  3. edit config.js and html/config.js

  4. Create Telegram Bot Using @BotFather and use authorization token and add to config

  5. To update Nodes List lets use web Mongo Db for example adming Mongo:
    cd /var/www
    git clone https://github.com/mrvautin/adminMongo.git
    cd adminMongo
    npm install
    edit file config/app.json to edit your webmongo db port and password

{ "app": {
"host": "0.0.0.0",
"port": 5000,
"password": "my_webadmin_pass",
"locale": "en",
"context": "dbApp",
"monitoring": false
} }

to start serrivce in folder /var/wwwadminMongo run:
node app

After start you can access service by url: http://your-server.srv:5000/dbApp/

On service webpage Create new connection: eosbemonitor
Connection string: mongodb://127.0.0.1:27017/eosbemonitor
and connect to this db.
Create new Collection "nodes" and import in this collection edited nodes list
[
{
"bp_name": "<producer_name>",
"organisation": "CryptoLions",
"location": "Ukraine",
"node_addr": "<NODE_IP/DPMAIN>",
"port_http": "<NODE_HTTP PORT>",
"port_ssl": "",
"port_p2p": "<NODE_P2P PORT>",
"pub_key": "<EOS_PRODUCER_PUBLIC_KEY>",
"bp": true,
"enabled": true,
"comment": ""
},
{
"bp_name": "<producer_name>",
"organisation": "CryptoLions",
"location": "Ukraine",
"node_addr": "<NODE_IP/DPMAIN>",
"port_http": "<NODE_HTTP PORT>",
"port_ssl": "",
"port_p2p": "<NODE_P2P PORT>",
"pub_key": "<EOS_PRODUCER_PUBLIC_KEY>",
"bp": true,
"enabled": true,
"comment": ""
}
]

  1. Runing Monitor
    cd /var/www/EOS-Testnet-monitor
    ./start.sh
    Monitor will start syncing and add records to db.. You can open your monitor by link http://<yourserver>:4000

or link html folder to your webserver forlder: ln -s /var/www/EOS-Testnet-monitor/html /var/www/html/monitor

Creators

WebSite: http://cryptolions.io/
GitGub: https://github.com/CryptoLions
SteemIt: https://steemit.com/@cryptolions

About

EOS BP network monitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.6%
  • HTML 10.1%
  • CSS 8.5%
  • Shell 1.8%