This is a very quick and dirty attempt at enabling telegraf to collect basic data from the popular FRITZ!Box routers made by manufacturer AVM. These devices export basic statistcis using UPnP (i.e. SOAP on port 49000) when configured to do so ("Heimnetz > Netzwerk > Netzwerkeinstellungen > Statusinformationen über UPnP übertragen").
The code borrows heavily from Nils Decker's excellent fritzbox_exporter.
- Copy code to
$TELEGRAF_SOURCE/plugins/all/fritzbox/fritzbox.go
, creating directories as needed. - Add
"github.com/influxdata/telegraf/plugins/inputs/fritzbox"
to imports inplugins/inputs/all/all.go
. - Build as usual.
The code doesn't handle data types, and I've never tested it with either multiple FRITZ!Box devices or FRITZ!OS version other than 7.02.
Works for me. Contributions welcome.