Skip to main content
Travis CI Status Coveralls Status PyPI Version

fritzcollectd

A collectd plugin for monitoring AVM FRITZ!Box routers.

Data captured for the FRITZ!Box includes:

  • Physical link status

  • Connection status

  • Online connection uptime

  • Maximal bit rates

  • Current bit rates

  • Total bytes sent and received

  • Total bytes send and received on LAN interface (requires authentication)

  • Router uptime (requires authentication)

Data captured for connected FRITZ!DECT devices (requires authentication):

  • Temperature

  • Switch status

  • Current power

  • Energy consumption

Dependencies

Installation

  1. pip install fritzcollectd

  2. Configure the plugin as shown below

  3. Restart collectd

Prerequisites

In order to be able to read the status information the option “Transmit status information over UPnP” has to be enabled in the “Network Settings” menu on the Fritz!BOX.

For reading values that are marked with requires authentication in the introduction section, the option “Allow access for applications” (also in “Network Settings”) has to be enabled as well. If desired a separate user account can be created for gathering statistics in “FRITZ!Box Users” in the “System” menu. The account needs to have the “FRITZ!Box Settings” permission.

Configuration

Add the following to your collectd config (typically /etc/collectd.conf):

<LoadPlugin python>
    Globals true
</LoadPlugin>
...
<Plugin python>
    Import "fritzcollectd"

    #<Module fritzcollectd>
    #    Address "fritz.box"
    #    Port 49000
    #    User "dslf-config"
    #    Password "pass"
    #    Hostname "FritzBox"
    #    Instance "1"
    #    Verbose "False"
    #</Module>
</Plugin>

The plugin recognizes several (optional) configuration parameters. In most cases the plugin works without any of these parameters. It might be necessary to specify Address if the router’s host name has been changed. The values in the introduction section that are marked with requires authentication can only be queried if the router’s Password has been configured (see also the prerequisites section).

  • Address: The network address of the FRITZ!Box.

  • Port: The TCP port of the FRITZ!Box.

  • User: The login user name on the FRITZ!Box.

  • Password: The password on the FRITZ!Box for authentication.

  • Instance: Plugin instance that collectd associates with the data.

  • Hostname: Hostname that collectd associates with the data (defaults to the host executing this plugin)

  • Verbose: Enable verbose logging to ease debugging.

The module block can be repeated to monitor multiple routers.

Further Information

Please refer to the project announcement blog post for additional information, such as the usage of Grafana for metrics visualization.

License

This projected is licensed under the terms of the MIT license.

Release files for fritzcollectd 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fritzcollectd 0.6.3
File Size Uploaded
fritzcollectd-0.6.3.tar.gz 13.0 kB Details

Release files / fritzcollectd-0.6.3.tar.gz

Download URL fritzcollectd-0.6.3.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e1fb83094692a5c9034d822a7f80ca386ee2d41660a3823c9f6dfad1863ef4bd
BLAKE2b-256 checksum
How to use checksums
38278538f32f1edd82b115dd1df148144c28f373a27a8daff0eb40e054e52ec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.5.6

Release history Release notifications | RSS feed

0.7.0

1 release file

This release

0.6.3 This release

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page