SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files
  1. Introduction
  2. Installation
  3. Options
  4. Examples
  5. TODO

1. Introduction

Statsnet is a small program that is able to create graphs over the transmitted/received bytes/packets and amount of connections over a router or on a single host.

The data is sampled from /proc/net/dev and /proc/net/ip_conntrack via the RRDtools package. For all of this to work, you need to have RRDtools installed, and you need to have a network interface, as well as the ip_conntrack module loaded.

The mkstatsnetrrd.sh script creates the initial round robin database. After that, you run statsnet.sh to collect data (this could, for example, be done from the rc.local script at bootup).

The statsnet.sh script per default runs the graphgen.sh script every 5th round through the main loop. Together with the default interval, this would approximately mean every 5 minutes. Both of these values are changeable in the statsnet.conf file.

2. Installation

The installation is very simple. Start by checking out statsnet.conf and check the settings there. Edit the makefile if you want to install somewhere else. Finally, just do:

# make install

All the scripts should be copied to their proper locations.

3. Options

These scripts takes no options as of yet. If you wish to check some of fixed settings, take a look at the /etc/statsnet.conf file. This file may also be copied to $HOME/.statsnetrc, which overrides the /etc copy.

4. Examples

No examples available at this time:) It's simple enough anyways.

5. TODO

  • Bugs?


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.