Skip to content

📈A Node.js Web based interface for VnStat

Notifications You must be signed in to change notification settings

FeroVolar/vnstat.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 62.9%
  • JavaScript 37.1%