Coder Social home page Coder Social logo

gnu_upnp2mrtg's Introduction

Monitoring Fritz!Box with MRTG

http://www.anetzb.de/upnp2mrtg/

upnp2mrtg

upnp2mrtg is a add-on for the MRTG (Multi Router Traffic Grapher). upnp2mrtg is a command line tool written in shell to gather statistics from an upnp enabled FritzBox DSL router.

Features

  • WAN interface monitoring
  • LAN interface monitoring, if Fritz!Box isn't the router (see -P option)
  • uses UPNP protocoll
  • very little requirements
  • configurable
  • no Fritz!Box modifications required

Fritz!Box Devices

Modell Status Remark
3030 ok
3170 ok
5050 ok
5113 ok
7050 ok
7141 ok
7170 ok
7270 ok
7490 ok needs fix

If you have a running upnp2mrtg installation not listed here, please drop me a note! Thanks!

Contact

If you have problems, questions, ideas or suggestions, please contact me: ([email protected])

Requirements

  • UNIX style Operating System
  • bourne shell
  • nc (netcat) or bash with net-redirections enabled
  • MRTG

Installation

  • copy upnp2mrtg to your favourite place (/usr/local/bin/upnp2mrtg)

  • install netcat

  • check successful operation of upnp2mrtg

  • modify your mrtg.cfg (add mrtg.cfg to your /etc/mrtg.cfg)

  • check if MRTG is configured properly: is mrtg started from cron? check for /etc/cron.d/mrtg or use

      0-59/5 * * * *  /usr/bin/mrtg --logging /var/log/mrtg.log
    

netcat

There are different incarnations of netcat. Type

nc -h

to check which on you use:

Configuration

If you use ...

netcat 1.10

no configuration is required. (Create configuration file /etc/upnp2mrtg.cfg with NETCAT="nc_q" or NETCAT="nc", if you have problems. There are some patched netcat 1.10 around the world with -q Options, which i could'nt not find in the original sources.)

The GNU netcat

create configuration file /etc/upnp2mrtg.cfg with NETCAT="netcat".

some other netcat

use -d Option to debug upnp2mrtg and drop me a note.

Screenshot

Want to see the result?

Download

Links

Todo

  • curl for networking?
  • Implementation with Python SOAPpy?
  • uptime is not FritzBox uptime, it's online time
  • Test it, with other upnp devices
  • learn more about upnp/soap

compile bash with net-redirections enabled download http://ftp.gnu.org/gnu/bash/bash-2.05b.tar.gz

./configure --enable-net-redirections --disable-readline
make
cp bash /usr/local/bin/bash
strip /usr/local/bin/bash

gnu_upnp2mrtg's People

Watchers

 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.