vnstat.js

0.1.0 • Public • Published

Flattr this git repo

VnStat.js

VnStat.js is a simple Web interface for the VnStat software. It is a HTTP node based on the Node.js framework. No Web server is needed, every think is included in the node.

Installation

  1. Install the VnStat and VnStati software.

Exemple on Debian Squeeze (using root console):

$ apt-get install vnstat vnstati
$ vnstat -u -i eth0 --nick "LAN0"
$ /etc/init.d/vnstat start
  1. Install the Node.js framework following https://github.com/joyent/node/wiki/Installation

  2. Download the VnStat.js node

    $ cd ~ $ git clone git://github.com/nicolargo/vnstat.js.git

Run the VnStat.js node

Run the node:

$ cd ~/vnstat.js
$ 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 1337, 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';

The end...

Readme

Keywords

none

Package Sidebar

Install

npm i vnstat.js

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • nicolargo