Home

Awesome

A bandwidth monitor that shows per process network transfer(Alpha)

Project is not maintained

Hackernews thread

I built this project for my college assignment. It was my first python project/package for that matter. I am really overwhelmed by the response, however the application is still in early stages.

Here are some things that need to be fixed/added for eg.

this project was made quickly; and had to workaround certain limitations using ineffecient techniques.

Screenshots
<img src="http://i.imgur.com/LGQagKL.png" height="600px"> <img src="http://i.imgur.com/R9n8rMK.gif">

Requirements:

Install

update: The package requires a pip module called pywebview for opening a webview window directly. It sometimes doesn't display output as it would on a web browser such as chrome, moreover installing it requires some additional packages on some systems as reported by users. see issue #6 and #4

Running

As hogwatch runs a light web server. you can view using either

  1. Standalone (webview): sudo hogwatch sudo is needed for nethogs. Its a bad idea to run the whole process as root. need to fix this.

  2. Web browser: sudo hogwatch server view at localhost:6432. for custom port specify port egsudo hogwatch server 8010. You can see this output from other devices on the network by specifying ip in place of localhost.

  3. Menubar: currently experimental. head to the menubar folder for instructions

    <img src="http://i.imgur.com/jZoTllz.jpg" alt="screenshot" height="400px">
Usage

The list contains the process names. Initially none of the processes is selected and global(accumulated) transfer rate/amount are displayed in the ui. Upon clicking one of the processes from the list, the metrics belonging to that process only will be shown. clicking on it again will toggle it off and will switch to global metrics once again.

<b>note:</b> on osx, currently only connections are shown and are yet to be mapped to the process.

Toggles on the top right: - play/pause button stops updating the graph so you may scroll it sideways without it jumping to the end with each update. - 5m,30m etc. are graph range selectors and determine the range window for the graph. For eg. if 5m is selected then the graph is scaled to show the latest 5 minute stats (pause and scroll for navigating history). "[ ]" button makes the range over the entire duration of the program.

<br> <hr> <br>

installation/run: (Development)

Hogwatch uses a light python webserver(bottle) feeding nethogs trace mode output to the frontend (Vue.js) using websockets.

hogwatch uses pipenv for managing virtual env and package versions.

Frontend: The python bottle app serves a built frontend application whose source lies in /vue-app. To make changes to the frontend you need to setup the vue-app.

License

MIT <br> Copyright Akshay Kumar akshay.kmr4321@gmail.com