FeroVolar / vnstat.js

๐Ÿ“ˆA Node.js Web based interface for VnStat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VnStat.js

This is functional fork of VnStat.js (https://github.com/nicolargo/vnstat.js) - a simple Web interface for the VnStat utility.

Installation

  1. Install the VnStat and VnStati utility.

Example on Ubuntu 14.04:

# sudo apt-get install vnstat vnstati
  1. Install the Node.js

    curl -sL https://deb.nodesource.com/setup | sudo bash -

    sudo apt-get install -y nodejs

  2. Download the VnStat.js node

    cd ~

    git clone git://github.com/FeroVolar/vnstat.js.git

Run the VnStat.js node

Run the node:

# cd ~/vnstat.js
# sudo node ./vnstat.js

On the console, the URL of the VnStat.js is displayed. Use a HTML5 compatible Web browser.

Informations

By default, the node listen on the TCP port 8887, do not forget to open your firewall if necessary. You can customized the web design by editing the css/style.css file.

VnStat.js use vnstat and vnstati softwares. You can edit the path using the lib/request.js file:

var cmd_vnstat = '/usr/bin/vnstat';
var cmd_vnstati = '/usr/bin/vnstati -c 5';

About

๐Ÿ“ˆA Node.js Web based interface for VnStat


Languages

Language:CSS 62.9%Language:JavaScript 37.1%