Coder Social home page Coder Social logo

wrzlbrmft / munin-fritzbox Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 196 KB

A Munin plugin to monitor the daily web traffic of an AVM FRITZ!Box DSL router.

License: GNU General Public License v3.0

Shell 100.00%
munin munin-plugins fritzbox avm traffic munin-graphs

munin-fritzbox's Introduction

munin-fritzbox

This Munin plugin lets you monitor the daily web traffic of an AVM FRITZ!Box DSL router.

 

IMPORTANT NOTE: I wrote this plugin for my FRITZ!Box Fon 7170, which runs the classic firmware version 29.04.81. Therefore, this plugin does not yet support FRITZ!Box models running FRITZ!OS. For more information see this AVM Technical Note: Session-IDs im FRITZ!Box Webinterface (PDF, German).

Requirements

  • A FRITZ!Box model running firmware version xx.04.74+ (FRITZ!OS is not yet supported)
  • /bin/bash
  • cURL
  • iconv
  • md5sum
  • Munin ;-)

Setup

To install the required software under Ubuntu or any other Debian-based Linux, simply run:

apt-get install curl munin munin-node

Next, download munin-fritzbox either as a ZIP file or use Git:

git clone https://github.com/wrzlbrmft/munin-fritzbox.git

Configuration

munin-fritzbox consists of a single script file named fritzbox_. To set the URL and password of your FRITZ!Box, edit the config section at the beginnign of the script:

# --- config ---
HOSTNAME="fritz.box"
PASSWORD="*****"
# --- /config ---

The script can generate three different Munin graphs:

  • Downloaded traffic
  • Uploaded traffic
  • Both downloaded/uploaded traffic combined in one graph

Munin plugins are activated by symlinking them from the plugins directory, usually located at /etc/munin/plugins.

To activate the combined graph, symlink the script with its original file name:

cd /etc/munin/plugins
ln -s /path/to/munin-fritzbox/fritzbox_

To activate the download graph, create a symlink with down appended to the file name:

cd /etc/munin/plugins
ln -s /path/to/munin-fritzbox/fritzbox_ fritzbox_down

To activate the upload graph, create a symlink with up appended to the file name:

cd /etc/munin/plugins
ln -s /path/to/munin-fritzbox/fritzbox_ fritzbox_up

Finally, restart Munin:

/etc/init.d/munin-node restart

License

This software is distributed under the terms of the GNU General Public License v3.

munin-fritzbox's People

Contributors

wrzlbrmft avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

munin-fritzbox's Issues

Plugin Fritzbox_ (7490 Ver 7.01) läuft auf Error

folgende Fehlermeldung wird ins Munin-Log (munin-node.log) geschrieben:
Das Plugin schreibt somit auch keine Daten:

munin-node.log:
2019/05/15-19:55:19 [12434] Error output from fritzbox_:
2019/05/15-19:55:19 [12434] /etc/munin/plugins/fritzbox_: line 14: printf: -P: invalid option
2019/05/15-19:55:19 [12434] printf: usage: printf [-v var] format [arguments]

Bitte um Feedback: [email protected]
Danke!

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.