Fritz Speed Documentation



Similar documents
Healthstone Monitoring System

plonesocial.auth.rpx Documentation

monoseq Documentation

Open Source Used In Cisco Instant Connect for ios Devices 4.9(1)

Allscripts Professional EHR

S3 Monitor Design and Implementation Plans

Installation and Testing of NMM (Windows)

Django Mail Queue Documentation

Subversion Server for Windows

Architecting the Future of Big Data

Open Source Software used in the product

django-helpdesk Documentation

8.7. Resource Kit User Guide

MultiValue Dashboard. Installation Guide

Google Cloud Print Setup. User s Guide

Software Package Document exchange (SPDX ) Tools. Version 1.2. Copyright The Linux Foundation. All other rights are expressly reserved.

Log Insight Manager. Deployment Guide

SDN Adaptive Load Balancing. Feature Description

Sophos for Microsoft SharePoint Help. Product version: 2.0

RSA Two Factor Authentication

Quick Start Guide

HP WBEM Services Software Developer's Kit Version A Release Notes. HP-UX 11i v3

This script builds the FacebookSDK.framework that is distributed at

Address Registration. Administrator Guide

Symantec Database Security and Audit 3100 Series Appliance. Getting Started Guide

[MD5 Message Digests] derived from the RSA Data Security, Inc. MD5 Message Digest Algorithm

HIGHSEC eid App Administration User Manual

System Center Virtual Machine Manager 2012 R2 Plug-In. Feature Description

RSA Two Factor Authentication. Feature Description

GFI Product Manual. Administration and Configuration Manual

CoreLib Documentation

Microsoft SharePoint

JobScheduler Installation by Copying

Azure Multi-Factor Authentication. KEMP LoadMaster and Azure Multi- Factor Authentication. Technical Note

Hyper V Windows 2012 and 8. Virtual LoadMaster for Microsoft Hyper V on Windows Server 2012, 2012 R2 and Windows 8. Installation Guide

NiCE Log File Management Pack. for. System Center Operations Manager Quick Start Guide

Information Management Configuring External Storage for Archive and Backup

GEO Sticky DNS. GEO Sticky DNS. Feature Description

EPESI PARTNERSHIP PROGRAM [EPP]

SolarWinds Technical Reference

AKIPS Network Monitor Installation, Configuration & Upgrade Guide Version 15. AKIPS Pty Ltd

Migrating Cirrus. Revised 7/19/2007

Boost Libraries Boost Software License Version 1.0

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Version Control with Subversion

Universal Management Service 2015

Configuring Symantec AntiVirus for Hitachi High-performance NAS Platform, powered by BlueArc

Simba ODBC Driver with SQL Connector for Apache Cassandra

Fuse MQ Enterprise Broker Administration Tutorials

DataFlux Migration Guide

AMERICAN INSTITUTES FOR RESEARCH OPEN SOURCE SOFTWARE LICENSE

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

MySQL Installer Guide

Dell Unified Communications Command Suite - Diagnostics 8.0. Data Recorder User Guide

Z Documentation. Release 2. Bart Thate

DIGIPASS Authentication for Windows Logon Getting Started Guide 1.1

Automated Database Backup. Procedure to create an automated database backup using SQL management tools

Self Help Guides. Create a New User in a Domain

SolarWinds Technical Reference

AKIPS Network Monitor Installation, Configuration & Upgrade Guide Version 16. AKIPS Pty Ltd

Internet Redundancy How To. Version 8.0.0

ios Deployment Simplified FileMaker How To Guide

SolarWinds Technical Reference

Notification messages

Automating client deployment

Using MRTG to Monitor I/O

PGP CAPS Activation Package

CA Nimsoft Unified Management Portal

Flask-SSO Documentation

TD MOBILE. Guide to Publishing Applications. Product Version 1.2

CA Nimsoft Monitor. Probe Guide for IIS Server Monitoring. iis v1.5 series

Introduction to Version Control in

Foglight Managing SQL Server Database Systems Getting Started Guide. for SQL Server

Cacti complete network graphing solution. Oz Melamed E&M Computing Jun 2009

Configuring and Integrating JMX

Symantec Security Information Manager - Best Practices for Selective Backup and Restore

Measuring Cache and Memory Latency and CPU to Memory Bandwidth

SolarWinds. Understanding SolarWinds Charts and Graphs Technical Reference

Open Source Used In Cisco IronPort Encryption SDK

May PZ-0502A-WWEN Prepared by: Internet & E-Commerce Solutions

VPN Configuration Guide. AVM FRITZ!Box

Backup Exec Cloud Storage for Nirvanix Installation Guide. Release 2.0

Craig Pelkie Bits & Bytes Programming, Inc. craig@web400.com

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

SOA Software: Troubleshooting Guide for Agents

Troubleshooting Guide 5.1. Quest Workspace ChangeBASE

IPSecuritas 3.x. Configuration Instructions. AVM FRITZ!Box. for

Interworks. Interworks Cloud Platform Installation Guide

TIBCO ActiveMatrix BusinessWorks Plug-in for TIBCO Managed File Transfer Software Installation

Synology NAS Server. Group Installation Guide Synology NAS Server Group Installation Guide

DameWare Server. Administrator Guide

ALERT installation setup

axsguard Gatekeeper Internet Redundancy How To v1.2

Configuring WMI on Windows Vista and Windows Server 2008 for Application Performance Monitor

Installing CPV Lab Version 2.17

Google Cloud Print User's Manual

SolarWinds Migrating SolarWinds NPM Technical Reference

Altiris Monitor Pack for Servers 7.1 SP2 from Symantec Release Notes

Transcription:

Fritz Speed Documentation Release 0.1.1 Thomas Westfeld February 04, 2016

Contents 1 What it does 1 2 How It Works 3 3 Contents 5 3.1 Installation................................................ 5 3.2 License.................................................. 7 4 Disclaimer 9 i

ii

CHAPTER 1 What it does A small suite of Python scripts to graph the incoming and outgoing transfer speeds from a Fritz!Box. It can be run on a small embedded device such as a RaspberryPi. It uses the RRDtool bindings for python to output the graphs suitable for embedding into a website. The scripts can be run without superuser privileges as a normal user, he only has to have the right file permissions to read and write to the round robin archive and to write the images. 1

Fritz Speed Documentation, Release 0.1.1 2 Chapter 1. What it does

CHAPTER 2 How It Works The Fritz!Box does not provide a standard SNMP interface common to most routers. Instead it relies on the TR-064 standard. The script monitor-traffic.py uses this interface to retrieve the counters for uploaded and downloaded bytes from the router and stores them in a round robin archive based on RRDtool. A second script graph-traffic.py reads this archive and generates graphs of the traffic for configured intervals of time. 3

Fritz Speed Documentation, Release 0.1.1 4 Chapter 2. How It Works

CHAPTER 3 Contents 3.1 Installation 3.1.1 Prerequisites Fritz Speed is working on a standard Python 2.7 environment and relies on the following packages for querying the Fritz!Box. fritzconnection lxml requests For storing the data in a round robin database it uses the python bindings to RRDtool. python-rrdtool To get the scripts you need Git to clone the repository using the URL https://github.com/westfeld/fritz-speed.git 3.1.2 Installation on a RaspberryPi Running Raspian 3.1.3 1. Downloading the Scripts To install the Fritz Speed scripts clone the GitHub repository: git clone https://github.com/westfeld/fritz-speed.git 3.1.4 2. Installing the Dependencies There are many ways to install the dependencies but for the common packages we rely on aptitude: aptitude install python-rrdtool python-requests python-lxml python-pip The fritzconnection package is not in the raspbian repository so it will be installed using pip by running: pip install fritzconnection 5

Fritz Speed Documentation, Release 0.1.1 3.1.5 3. Configuration Configuration basically means setting the location of the round robin archive (rra) file in which the data is stored. In addition the properties and location of the individual graphs have to be defined. Starting from the default fritz-speed.ini file typically only two variables have to be edited: rra_filename which defines the round robin archive filename in which the traffic data is stored and graph_basedir which is the output directory under which all graph files will be stored. Note: The user under which both the monitor-traffic.py and graph-traffic.py scripts are executed has to have read/write permissions to the rra_filename and the graph_basedir directory. An example of a typical fritz-speed.ini file is shown here: [DEFAULT] rra_filename: /var/rrdtool/wan_traffic.rra graph_height: 300 graph_width: 500 graph_basedir: /var/www/htdocs/pics # definitions of graphs to be plotted # each section corresponds to one graph [day] # interval in seconds to be plotted interval: 86400 # title of plot title: Traffic of last day # filename of plot filename: %(graph_basedir)s/traffic_1d.png [week] # interval in seconds to be plotted interval: 604800 # title of plot title: Traffic of last week # filename of plot filename: %(graph_basedir)s/traffic_1w.png [month] # interval in seconds to be plotted interval: 2592000 # title of plot title: Traffic of last month # filename of plot filename: %(graph_basedir)s/traffic_1m.png 3.1.6 4. Create Round Robin Archive To create the empty archive simply run the following script:./create-rra.py During this setup step the maximum up- and downlink speed is queried from the router and set as the maximum valid value in the archive (an error margin of 10% is added to the determined value). This setting is important because if the router s transferred bytes counter is reset this would otherwise lead to a spike in the traffic graph. 6 Chapter 3. Contents

Fritz Speed Documentation, Release 0.1.1 3.1.7 5. Running as a Cronjob To monitor the traffic on the Fritz!Box the monitor-traffic.py script is executed periodically, which then reads the traffic counter on the router and stores the value in the round robin archive. To generate the graphs from the stored data the script graph-traffic.py is executed. It would also update already existing images. Typically one would add the following line to the user s crontab to record the data and update the graphs every minute. To do so the command crontab -e opens the user s crontab and the following line is added */1 * * * * [absolute path to script]/monitor-traffic.py && [absolute path to script]/graph-traffic.p 3.2 License The Fritz Speed scripts are released under MIT license. 3.2.1 The MIT License (MIT) Copyright (c) 2016 Thomas Westfeld Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PAR- TICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT- WARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 3.2. License 7

Fritz Speed Documentation, Release 0.1.1 8 Chapter 3. Contents

CHAPTER 4 Disclaimer The product Fritz! and Fritz!Box is a trademark of the AVM GmbH, Berlin, Germany. 9