GithubHelp home page GithubHelp logo

ossobv / lightcount Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 0.0 532 KB

2008: LightCount consists of a daemon (in C) that keeps track of all IP traffic on specified ethernet interfaces and an interface (in python) that reads the data from the MySQL database. Used to monitor bandwidth usage per IP address.

License: GNU General Public License v3.0

Shell 0.48% Makefile 0.12% C 93.89% Python 5.51%
realtime ipv4 traffic-monitoring

lightcount's Introduction

LIGHTCOUNT

LightCount is a light-weight IP traffic counting tool developed by Walter Doekes at OSSO B.V. in 2008.

BEWARE: This is old code, migrated to git. Previously, this was found at: https://code.osso.nl/projects/lightcount

SUMMARY

LightCount consists of a daemon (in C) that keeps track of all IP traffic on specified ethernet interfaces and an interface (in python) that reads the data from the MySQL database. Use this to monitor bandwidth usage per IP address.

PORTABILITY

Currently, the lightcount daemon needs the pthread library for threading and the mysqlclient library for storage. It has been compiled with the gcc -ansi flag, but has not been extensively tested outside (Debian/Ubuntu) Linux 2.6 systems. Most importantly, non-Linux systems will not have a PF_PACKET socket interface, so you'll need to write your own sniff.c on a non-Linux box.

The interface was created with python version 2.5 and common modules:

  • pytz (python-tz)
  • MySQLdb (python-mysqldb)
  • matplotlib (python-matplotlib)

FURTHER READING

See the INSTALL file. And when you've completed building the daemon, run it with the -h (help) option to see help about how it does what it does and which preprocessor options you can change to modify its behaviour.

lightcount's People

Contributors

wdoekes avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.