wts-monit
wts-monit copied to clipboard
Web terminal shell monit build with Node.js.
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:
runtime screenshots:
Usage
- install via npm
$ npm install wts-monit
or just clone from github:
$ git clone https://github.com/chemdemo/wts-monit.git
- install dependencies
$ npm install
- conf server(s) port
$ vim conf/index.js
- run as debug
$ node index.js # relies on Node.js V5.0+
- deploy via
pm2
$ pm2 start pm2_deploy.json
then open http://[YOUR HOST]:[YOUR PORT]
in browser.
socket clients written by different languages
- Node.js client: wts-node
Todo
-
login access control
-
command access control
License
Copyright (c) 2015, chemdemo (MIT License)