Skip to content
/ vnchart Public

A tiny python web app used to show data transfer dashboard

License

Notifications You must be signed in to change notification settings

invkrh/vnchart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vnchart

Build Status codecov

A tiny python web app to show network traffic of a sever with vnstat.

Thanks @vergoh for all the work on vnstat

Demo

To give you a quick idea on what it looks like, you could have a look at the following page.

Here

Requirements

  • python 2.7 or 3.5

  • vnstat >= 1.14

    • ubutun / debian:

      $ sudu apt-get install vnstat
    • centos / redhat:

      The vnStat rpm packages are on the EPEL Repo, so you'll need that setup on your server. Then you should be able to just install with yum.

      $ sudo yum -y install vnstat
    • source:

      Take a look at INSTALL file in the source zip file. Normally, there will be no more lib deps to install.

      $ ./configure --prefix=/usr --sysconfdir=/etc && make
      $ make install
    • Check version: vnstat --version

Features

  • Data transfer dashboard

    • current month
    • last month
    • last 24 hours
    • last 30 days
  • UI Chart

    • responsive
    • filter dataset by clicking on legend
    • all the leading zeor-value bars will not be shown

Install

git clone https://github.com/invkrh/vnchart.git
cd vnchart
pip install -r requirements.txt

Run

./start.sh

Configuration

If you want to change port(default: 80, only available for root), please check start.sh file.

Troubleshooting

Check ./logs which is hourly rotated within the recent 24 hours

About

A tiny python web app used to show data transfer dashboard

Resources

License

Stars

Watchers

Forks

Packages

No packages published