Username: Password:

Author Topic: Gmon Web Console using GoTTY - linux only for now  (Read 362 times)

Offline nate16

  • Trust: (0)
  • Rookie
  • *
  • Posts: 2
    • View Profile
Gmon Web Console using GoTTY - linux only for now
« on: June 30, 2017, 12:35:12 AM »
This will give you a web console of your gmon!! Tested on ubuntu. Windows possibly to follow. If root is your only account, make a non-root user. This assumes your gunbot install is in /opt/gunbot



sudo apt-get install linuxbrew-wrapper

brew install yudai/gotty/gotty

cd ~/.linuxbrew/Cellar/gotty/v1.0.0/bin

./gotty -p 6969 gmon -p /opt/gunbot -r 20 -cs

then in a webbrowser go to http://yourserverip:6969

Enjoy!!

-Nate

Tips happily accepted!
ZEC: t1NkAgGvJqzyXptgvL7Rok32YqLrerxhGDa
BTC: 1F21xekEDbZwgCRqPNywhVn9ffpFs87Nan


Offline Diesel

  • Trust: (0)
  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Gmon Web Console using GoTTY - linux only for now
« Reply #1 on: June 30, 2017, 04:04:28 AM »
Does this mean gmon is always running, or is it firing when you connect?
Are you able to drop to a command prompt at all, or are you just displaying gmon?

I've been using Secure Shell for Chrome, and running it as an app.... basically a TTY connection in the browser, but with the same result....  and the benefit of having full TTY access and secure access.

Nice job!


Offline nate16

  • Trust: (0)
  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Gmon Web Console using GoTTY - linux only for now
« Reply #2 on: June 30, 2017, 05:43:38 AM »
This is running gmon on the server at all times. You can't drop to a prompt for security reasons.

SSH extension is a good alternative but I personally wanted to make it easy to get a read-only report from gmon at a web url.