wts-monit

0.1.0 • Public • Published

wts-monit

Send commands to remote terminal to execute and then show result on the web console.

WTS monitor launch a socket server as RPC server, any remote(or maybe the monitor self) terminal can create a socket then connect to the RPC server.

Also WTS monitor will launch a websocket server to manage all remote clients.

The system architecture:

wts architecture

runtime screenshots:

wts architecture

Usage

  • install via npm
npm install wts-monit
  • install dependencies
npm install
  • conf server(s) port
vim conf/index.js
  • run as debug
node --harmony index.js # Node.js v0.12+
node/iojs index.js # iojs
  • deploy via pm2
pm2 start pm2_deploy.json

then open http://[YOUR HOST]:[YOUR PORT] in browser.

socket clients written by different languages

Todo

  • login access control

  • command access control

License

Copyright (c) 2015, chemdemo (MIT License)

Dependents (0)

Package Sidebar

Install

npm i wts-monit

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dmyang