I like learning about new technologies.
Skills: PYTHON / DATA SCIENCE / JS / HTML / CSS / C++ / SQL / Jupyter / AWS / Linux
🌱 I’m currently working as Lead Software Engineer at HERE Technologies.
A collection of munin plugins to monitor your AVM FRITZ!Box router
License: GNU General Public License v2.0
According to this page, it is possible to let Munin think some parts of the data belongs to some sort of subhost, which is logical to have for these scripts. However, there is no option to introduce this.
Currently, I've added the option to the scripts myself, but I've not yet been able to migrate my current history to the new "subhost'. However, it should work nicely to split the graphs.
I might create a PR for this in the coming week, depending on my time.
Hi,
it is possible to add the password parameter to fritzbox_traffic.py. If i try the python script i got no results.
With password all works fine:
conn = FritzConnection(address=os.environ['fritzbox_ip'],password=os.environ['fritzbox_password'])
Thanks for your great work! :)
Best Regards,
Fabian
Hi Tafkas,
I use LibreNMS as monitoring platform instead of munin
Can you make a intregration in LibreNMS too?
Here is my request in LibreNMS Community:
https://community.librenms.org/t/avm-fritzbox-integration-in-librenms/9416
Thanks and regards
Error: Failed building wheel for lxml
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-VD68i6/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ux4_WQ-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-VD68i6/lxml/
How can this issue be solved... solutions to install the "wheel" pakage isn't solving the issue
hi,
i installed this plugin, but munin doesn't show me any new graphs. Which information do you need to help me?
creating rrd-file for fritzbox_wifi_devices_py->wifi: '/var/lib/munin/.../server.......-fritzbox_wifi_devices_py-wifi-g.rrd'
This showed up in the logs, after enabling the plugin, but no graph can be seen
2Fake
These plugins seem broken ...
fritzbox_wifi_devices.py
fritzbox_cpu_temperature.py
server = os.environ["fritzbox_ip"] KeyError: 'fritzbox_ip'
fritzbox_uptime.py
fritzbox_cpu_usage.py
fritzbox_traffic.py
/var/log/munin/munin-node.log
is produced with the configuration details below:
env.fritzbox_ip 192.168.sub.1 # 7490 FRITZ!OS: 07.29 - Version aktuell
env.fritzbox_ip 192.168.sub.41 # 7390 FRITZ!OS: 06.87
later I can check the plugins with ...
7272os06.88
7270v3os06.06
3270v3os05.54
3131os04.57
Now it is working, but showed a lot of errors, I address here ... should not be an issue of user rights inside the fritzbox. The trusted
user has everything granted except
|__| Zugang aus dem Internet
|__| VPN-Verbindungen zur FRITZ!Box können hergestellt werden.
env.fritzbox_ip 192.168.sub.1 # 7490 FRITZ!OS: 07.29 - Version aktuell
env.fritzbox_ip 192.168.sub.41 # 7390 FRITZ!OS: 06.87
root@nas52:~# less /var/log/munin/munin-node.log
2023/01/09-01:00:13 [921302] Error output from fritzbox_power_consumption.py:
2023/01/09-01:00:13 [921302] Couldn't retrieve fritzbox power consumption
2023/01/09-01:00:13 [921302] Service 'fritzbox_power_consumption.py' exited with status 1/0.
2023/01/09-01:05:01 CONNECT TCP Peer: "[::ffff:127.0.0.1]:47844" Local: "[::ffff:127.0.0.1]:4949"
2023/01/09-01:05:01 CONNECT TCP Peer: "[::ffff:127.0.0.1]:47860" Local: "[::ffff:127.0.0.1]:4949"
2023/01/09-01:05:01 CONNECT TCP Peer: "[::ffff:127.0.0.1]:47866" Local: "[::ffff:127.0.0.1]:4949"
2023/01/09-01:05:03 [922136] Error output from fritzbox_wifi_devices.py:
2023/01/09-01:05:03 [922136] Couldn't retrieve connected fritzbox wifi devices
2023/01/09-01:05:03 [922136] Service 'fritzbox_wifi_devices.py' exited with status 1/0.
2023/01/09-01:05:05 [922136] Error output from fritzbox_cpu_temperature.py:
2023/01/09-01:05:05 [922136] Traceback (most recent call last):
2023/01/09-01:05:05 [922136] File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 62, in <module>
2023/01/09-01:05:05 [922136] get_cpu_temperature()
2023/01/09-01:05:05 [922136] File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 30, in get_cpu_temperature
2023/01/09-01:05:05 [922136] server = os.environ["fritzbox_ip"]
2023/01/09-01:05:05 [922136] File "/usr/lib/python3.9/os.py", line 679, in __getitem__
2023/01/09-01:05:05 [922136] raise KeyError(key) from None
2023/01/09-01:05:05 [922136] KeyError: 'fritzbox_ip'
2023/01/09-01:05:05 [922136] Service 'fritzbox_cpu_temperature.py' exited with status 1/0.
2023/01/09-01:05:06 [922136] Error output from fritzbox_uptime.py:
2023/01/09-01:05:06 [922136] Couldn't retrieve fritzbox uptime
2023/01/09-01:05:06 [922136] Service 'fritzbox_uptime.py' exited with status 1/0.
2023/01/09-01:05:07 [922136] Error output from fritzbox_cpu_usage.py:
2023/01/09-01:05:07 [922136] Couldn't retrieve fritzbox cpu usage
2023/01/09-01:05:07 [922136] Service 'fritzbox_cpu_usage.py' exited with status 1/0.
2023/01/09-01:05:08 [922136] Error output from fritzbox_traffic.py:
2023/01/09-01:05:08 [922136] Traceback (most recent call last):
2023/01/09-01:05:08 [922136] File "/etc/munin/plugins/fritzbox_traffic.py", line 28, in <module>
2023/01/09-01:05:08 [922136] server = os.environ["fritzbox_ip"]
2023/01/09-01:05:08 [922136] File "/usr/lib/python3.9/os.py", line 679, in __getitem__
2023/01/09-01:05:08 [922136] raise KeyError(key) from None
2023/01/09-01:05:08 [922136] KeyError: 'fritzbox_ip'
2023/01/09-01:05:08 [922136] Service 'fritzbox_traffic.py' exited with status 1/0.
2023/01/09-01:05:08 [922136] Error output from fritzbox_traffic.py:
2023/01/09-01:05:08 [922136] Traceback (most recent call last):
2023/01/09-01:05:08 [922136] File "/etc/munin/plugins/fritzbox_traffic.py", line 28, in <module>
2023/01/09-01:05:08 [922136] server = os.environ["fritzbox_ip"]
2023/01/09-01:05:08 [922136] File "/usr/lib/python3.9/os.py", line 679, in __getitem__
2023/01/09-01:05:08 [922136] raise KeyError(key) from None
2023/01/09-01:05:08 [922136] KeyError: 'fritzbox_ip'
2023/01/09-01:05:08 [922136] Service 'fritzbox_traffic.py' exited with status 1/0.
2023/01/09-01:05:10 [922136] Error output from fritzbox_connection_uptime.py:
2023/01/09-01:05:10 [922136] Traceback (most recent call last):
2023/01/09-01:05:10 [922136] File "/etc/munin/plugins/fritzbox_connection_uptime.py", line 28, in <module>
2023/01/09-01:05:10 [922136] server = os.environ["fritzbox_ip"]
2023/01/09-01:05:10 [922136] File "/usr/lib/python3.9/os.py", line 679, in __getitem__
2023/01/09-01:05:10 [922136] raise KeyError(key) from None
2023/01/09-01:05:10 [922136] KeyError: 'fritzbox_ip'
2023/01/09-01:05:10 [922136] Service 'fritzbox_connection_uptime.py' exited with status 1/0.
2023/01/09-01:05:10 [922136] Error output from fritzbox_connection_uptime.py:
2023/01/09-01:05:10 [922136] Traceback (most recent call last):
2023/01/09-01:05:10 [922136] File "/etc/munin/plugins/fritzbox_connection_uptime.py", line 28, in <module>
2023/01/09-01:05:10 [922136] server = os.environ["fritzbox_ip"]
2023/01/09-01:05:10 [922136] File "/usr/lib/python3.9/os.py", line 679, in __getitem__
2023/01/09-01:05:10 [922136] raise KeyError(key) from None
2023/01/09-01:05:10 [922136] KeyError: 'fritzbox_ip'
2023/01/09-01:05:10 [922136] Service 'fritzbox_connection_uptime.py' exited with status 1/0.
2023/01/09-01:05:12 [922136] Error output from fritzbox_memory_usage.py:
2023/01/09-01:05:12 [922136] Couldn't retrieve fritzbox memory usage
2023/01/09-01:05:12 [922136] Service 'fritzbox_memory_usage.py' exited with status 1/0.
2023/01/09-01:05:13 [922136] Error output from fritzbox_power_consumption.py:
2023/01/09-01:05:13 [922136] Couldn't retrieve fritzbox power consumption
2023/01/09-01:05:13 [922136] Service 'fritzbox_power_consumption.py' exited with status 1/0.
What am I did wrong before? The journey to the sirens ...
root@nas52:~# netcat localhost 4949
# munin node at nas52.local
list
cpu cpuspeed df df_inode entropy forks fw_packets http_loadtime if_enp0s25 if_enp4s0 if_err_enp0s25 if_err_enp4s0 interrupts irqstats load memory munin_stats nfsd nfsd4 open_files open_inodes postfix_mailqueue postfix_mailvolume proc_pri processes smart_sdc smart_sdd swap threads uptime users vmstat
/etc/munin/plugins# pip list
Package Version
--------------- ---------
fritzconnection 1.10.3
lxml 4.6.3
root@nas-525a:~# fritzconnection
fritzconnection v1.10.3
FRITZ!Box 7490 at http://169.254.1.1
FRITZ!OS: 7.29
User rights are ok, Sym.links are present ...
ls -al /usr/share/munin/plugins/fritz*
root@nas52:~# ls -al /usr/share/munin/plugins/fritz*
-rwxr-xr-x 1 root root 2118 29. Apr 2021 /usr/share/munin/plugins/fritzbox_connection_uptime.py
-rwxr-xr-x 1 root root 2009 29. Apr 2021 /usr/share/munin/plugins/fritzbox_cpu_temperature.py
-rwxr-xr-x 1 root root 2036 29. Apr 2021 /usr/share/munin/plugins/fritzbox_cpu_usage.py
-rwxr-xr-x 1 root root 6003 29. Apr 2021 /usr/share/munin/plugins/fritzbox_helper.py
-rwxr-xr-x 1 root root 2413 29. Apr 2021 /usr/share/munin/plugins/fritzbox_memory_usage.py
-rwxr-xr-x 1 root root 3244 29. Apr 2021 /usr/share/munin/plugins/fritzbox_power_consumption.py
-rwxr-xr-x 1 root root 3185 29. Apr 2021 /usr/share/munin/plugins/fritzbox_traffic.py
-rwxr-xr-x 1 root root 2818 29. Apr 2021 /usr/share/munin/plugins/fritzbox_uptime.py
-rwxr-xr-x 1 root root 2418 29. Apr 2021 /usr/share/munin/plugins/fritzbox_wifi_devices.py
root@nas52:~# ls -al /etc/munin/plugins/fritz*
lrwxrwxrwx 1 munin munin 54 28. Dez 16:41 /etc/munin/plugins/fritzbox_connection_uptime.py -> /usr/share/munin/plugins/fritzbox_connection_uptime.py
lrwxrwxrwx 1 munin munin 52 28. Dez 16:41 /etc/munin/plugins/fritzbox_cpu_temperature.py -> /usr/share/munin/plugins/fritzbox_cpu_temperature.py
lrwxrwxrwx 1 munin munin 46 28. Dez 16:41 /etc/munin/plugins/fritzbox_cpu_usage.py -> /usr/share/munin/plugins/fritzbox_cpu_usage.py
lrwxrwxrwx 1 munin munin 43 28. Dez 16:41 /etc/munin/plugins/fritzbox_helper.py -> /usr/share/munin/plugins/fritzbox_helper.py
lrwxrwxrwx 1 munin munin 49 28. Dez 16:41 /etc/munin/plugins/fritzbox_memory_usage.py -> /usr/share/munin/plugins/fritzbox_memory_usage.py
lrwxrwxrwx 1 munin munin 54 28. Dez 16:41 /etc/munin/plugins/fritzbox_power_consumption.py -> /usr/share/munin/plugins/fritzbox_power_consumption.py
lrwxrwxrwx 1 munin munin 44 28. Dez 16:41 /etc/munin/plugins/fritzbox_traffic.py -> /usr/share/munin/plugins/fritzbox_traffic.py
lrwxrwxrwx 1 munin munin 43 28. Dez 16:41 /etc/munin/plugins/fritzbox_uptime.py -> /usr/share/munin/plugins/fritzbox_uptime.py
lrwxrwxrwx 1 munin munin 49 28. Dez 16:41 /etc/munin/plugins/fritzbox_wifi_devices.py -> /usr/share/munin/plugins/fritzbox_wifi_devices.py
Really confused ???, did nothing wrong according to the README
https://github.com/Tafkas/fritzbox-munin
which is unclear with multiple devices, but even one fritzbox did not work.
The real important information is concealed here
https://github.com/oe73773/fritzbox-munin#installation--configuration
and referred here #39
A really malicious trap, takes me hours to discover,
how to deal right with multiple or even one fritzbox.
In the README the links are mentioned as sym-links, created with '''ln -d'''
I used '''ln -s''' on Debain/11 based System.
This config worked at once, the plugins were listed and produced the above log-file.
root@nas52:~# vi /etc/munin/munin.conf
[fbox-wifi;fqdn1]
# address 127.0.0.1
address localhost
use_node_name no
[fbox-wifi;fqdn41]
address 127.0.0.1
# address localhost
use_node_name no
root@nas52:~# vi /etc/munin/plugin-conf.d/munin-node
# here comes [fritzbox_nodeNo_*] from /etc/munin/munin.conf
[fritzbox_fqdn1_*]
env.locale de
env.fritzbox_ip 192.168.sub.1 # 7490 FRITZ!OS: 07.29 - Version aktuell
# If you still have password only login, omit ...fritzbox_username,
# set the ...fritzbox_password and the username is automaticly detected.
env.fritzbox_username trusted
env.fritzbox_password passwd
env.traffic_remove_max true # if you do not want the possible max values
## env.host_name fqdn1 # is required when ... ???
[fritzbox_fqdn41_*]
env.locale de
env.fritzbox_ip 192.168.sub.41 # 7390 FRITZ!OS: 06.87
# If you still have password only login, omit ...fritzbox_username,
# set the ...fritzbox_password and the username is automaticly detected.
env.fritzbox_username trusted
env.fritzbox_password passwd
env.traffic_remove_max true # if you do not want the possible max values
## env.host_name fqdn41 # is required when ... ???
root@nas52:~# netcat localhost 4949
# munin node at nas52.local
list
cpu cpuspeed df df_inode entropy forks fritzbox_connection_uptime.py fritzbox_cpu_temperature.py fritzbox_cpu_usage.py fritzbox_memory_usage.py fritzbox_power_consumption.py fritzbox_traffic.py fritzbox_uptime.py fritzbox_wifi_devices.py fw_packets http_loadtime if_enp0s25 if_enp4s0 if_err_enp0s25 if_err_enp4s0 interrupts irqstats load memory munin_stats nfsd nfsd4 open_files open_inodes postfix_mailqueue postfix_mailvolume proc_pri processes smart_sdc smart_sdd swap threads uptime users vmstat
Please edit README.md to be more specific re:
- Create symbolic links to /etc/munin/plugins
Create entry in /etc/munin/plugin-cond.d/munin-node:
should be
Create entry in /etc/munin/plugin-conf.d/munin-node:
I am using a Fritzbox 7360 with FritzOS 6.50
Installed the scripts for FritzOS 6.50, but whatever plugin i call, i just get
Couldn't retrieve fritzbox traffic
I tried by using the command sudo -u munin python /etc/munin/plugins/fritzbox_traffic.py
Here is the part of my /etc/munin/plugin-conf.d/munin-node
-file:
[fritzbox_*]
user munin
env.fritzbox_ip 192.168.0.1
env.fritzbox_password mypassword
Any idea, what I did wrong? I am using Ubuntu 14.04.4 LTS
I only get Connection Uptime and WAN Traffic, all other queries do not get any information.
I had recently had to change from authentication "with password" to "username + password", because of other tools I use.
So now this plugin does not work anymore, because it does not support authentication with username.
Any change to implement this?
I think fritzconnection does support this.
I do not want to have the maximum connection speed available, so I've disabled it manually by commenting the code. It should be possible to do that with an environment option.
Hi,
I changed your scripts in order to get the DOCSIS data out of a 6490 from Unitymedia.
Its ugly but works, any interest in adding it?
Steffen
I get this far (in e.g. fritzbox_power_consumption.py):
xhr_data = fh.get_xhr_content(server, session_id, PAGE)
print ("DEBUG: got header content %s" % xhr_data, file=sys.stderr)
data = json.loads(xhr_data)
But xhr_data starts out:
<script>if (typeof jxl === \'undefined\')
Is it necessary and sufficient to upgrade to OS 7?
Am I out of date or is fritzconnection out of date?
Doesn't Work anymore with FritzOS 6.50 :-(
hi, first off let me thank you for your fritzbox-munin plugins.
they work great and even on my fritzbox 7490 on Fritz!OS 6.92 (latest version).
i do have a request. can we have an total traffic graph?
similar to this but which gets its data from the fritzbox?
i know that the fritzbox has its own stats for total bandwidth but it would be nice to be able to add a plugin that shows those thats to munin.
Commit 883c61e broke the wifi device number for FritzBox 7412, for which the latest firmware is 6.86.
/system/energy.lua
in that firmware version does not return JSON.
Parsing the number with a regex is still needed here.
Only a few plugins work:
ok fritzbox_connection_uptime.py
err fritzbox_cpu_temperature.py
err fritzbox_cpu_usage.py
err fritzbox_memory_usage.py
err fritzbox_power_consumption.py
ok fritzbox_traffic.py
err fritzbox_uptime.py
err fritzbox_wifi_devices.py
Going back to the 6.83.2 does not work on systems without python2 anymore:
$ ./fritzbox_wifi_devices.py
/usr/bin/env: 'python': No such file or directory
I successfully installed this plugins.
But my fritzbox graphy are shown underneath my local server entry in the munin webinterface.
Is this by design?
I would like a separate entry for my fritzbox.
An examplere where this works are the munin plugins for mikrotik routers.
http://wiki.mikrotik.com/wiki/Munin_Monitoring
After the "" the plugins expect a hostname in the filename.
You just create symlinks with the hostname to the plugins that end with "".
On my munin installation the WAN traffic it doesn't show anything. All other graphs works fine. The FritzBox 3490 have a DSL Modem inside. But I use the first LAN Port as WAN Port.
Here the output from the fritzbox_traffic.py
root@raspberrypi:/etc/munin/plugins# sudo -u munin python /etc/munin/plugins/fritzbox_traffic.py
Couldn't retrieve fritzbox traffic
Thank you for our Help!
FYI: I've noticed that the following sections do not generate any data on the graph:
AVM Fritz!Box WAN traffic
AVM Fritz!Box Connection Uptime
AVM Fritz!Box Uptime
I am using a: 7390 with FRITZ!OS: 06.86
with a fresh (non docker) install of Munin version 2.0.49 on ubuntu server (on raspberry 4 (arm64))
I fixed these two scripts:
/usr/share/munin/plugins/fritzbox_connection_uptime.py
/usr/share/munin/plugins/fritzbox_traffic.py
using this URL to fix it:
https://bitbucket.org/kbr/fritzconnection/issues/37/unknown-service-wancommoninterfaceconfig-1
I changed the "WANCommonInterfaceConfig" into "WANCommonIFC"
and respectively:
"WANIPConnection" to "WANIPConn"
The rest of the scripts is using uPNP and I can't get them to work properly.
for instance the script: "fritzbox_cpu_usage.py"
gives the following error:
No JSON object could be decoded
Couldn't retrieve fritzbox cpu usage
I will try to troubleshoot and fix it myself and let you know but any help is appreciated.
grtz,
Andre
Thanks for the good work, just installed the plugin.
Working fine except for the graph which should show the number WIFI connections, it doesn't show anything.
munin-run fritzbox_wifi_devices.py doesnt return any value neither
Currently, the power consumption is in the same category as the network related stats, which seems weird to me. Maybe we can create the category power
?
The munin plugin works with a FritzBox 3370.
Hello,
I have random connectivity issues when connected to a WLAN via Fritz Powerline Adapters that do not show up in the log.
Did you already investigate weather an extension to monitor them in addition to the Fritzbox would be Possible?
After update to OS 7.25 connection to my 7590 stopped working.
During update a new standard fritzbox user account was created. Seems that this new user account is not required for web interface logins but for all the cmd logins from now on.
Error message with munin-run is
ERROR - No SID received because of invalid password Couldn't retrieve fritzbox uptime
Meine zwei Router (an zwei Standorten) sind mit FritzOS >7.xx in der primären Zielgruppe von fritzbox-munin. Dahinter laufen mehrere alte >06.8x (und einige uralte 06.06 bis 04.57) FritzBoxen als (echter) Access-Point im IP-Client-Modus, d.h.
Mit einem Berechtigungskonzept und der Zugangskontrolle über die Geräte-MAC-Adresse (alles im Router) funktioniert das WLAN (eine SSID, ein Passwort) bestens und entspr. der deutschen Gesetzeslage (privater WLAN-Betreiber, Pflichten und Risiken). Details gerne auf Nachfrage.
An den Routern 3490 7390 funktioniert was ich brauche perfekt. _power_consumption ergibt an beiden einen Fehler.
2023/01/26-18:00:37 [515527] Error output from fritztest_power_consumption:
2023/01/26-18:00:37 [515527] Couldn't retrieve fritzbox power consumption
2023/01/26-18:00:37 [515527] Service 'fritztest_power_consumption' exited with status 1/0.
# munin-run fritztest_power_consumption
system.value 36
cpu.value 67
wifi.value 38
dsl.value 100
ab.value 0
Couldn't retrieve fritzbox power consumption
Warning: the execution of 'munin-run' via 'systemd-run' returned an error.
An der 3490 hatte ich die Protokolle nicht aktiviert, deshalb war _traffic(WAN leer.
Netzwerkeinstellungen - Heimnetzfreigaben
|_X_| Zugriff für Anwendungen zulassen / TR-064
|_X_| Statusinformationen über UPnP übertragen
|___| Smart-Home-Funktion im FRITZ!Box-Heimnetz freigeben
An den Routern fehlen mir aus Heimnetz - Netzwerk - Netzwerkverbindungen, die Anzahl der aktiven Clients (evtl. getrennt nach: full access / Kindersicherung).
An den Access-Points (bei mir 8-10 Stück) reichen _wifi_devices, _cpu_temperature, _cpu_usage, _memory_usage als Info. Weil _traffic/WAN leer sein wird, wären Infos aus der Seite WLAN - Funkkanal (besonders eigene/fremde Funksignale, Kanal/-breite) super.
>07.xx | >06.8x | <06.06 |
---|---|---|
fast alles i.O. | nichts funktioniert | viel zu alt |
7490os07.30 passt, Danke! | 7272os06.88 gar nichts | 7270v3os06.06 vielleicht ? |
3490os07.29 passt, Danke! | 7390os06.87 gar nichts | 3270v3os05.54 3131os04.57 niemals |
feature request number of clients active | #58 | ggfs. austauschen >06.8x |
Ohne die Hinweise in einem 'alten Update README' https://github.com/oe73773/fritzbox-munin#installation--configuration hätte ich die munin-config mit mehreren Geräten niemals geschafft.
Hi,
since upgrading my fritz.box to FRITZ!OS 06.60, I don't receive anything from severeal scripts.
For example:
➜ yoyostile@sn0w plugins fritzbox_ip=192.168.1.1 fritzbox_password=PASSWORD ./fritzbox_memory_usage
ERROR - No SID received because of invalid password
Couldn't retrieve fritzbox memory usage
I'm not really sure what's going on. Scripts using fritzconnection
are working fine, as far as I can see.
Is someone running fritzbox-munin scripts with 06.60?
Best,
Johannes
Would it be possible to add the data as seen in the graphs of
Internet > DSL Information
Specificallty the tabs: DSL, Statistics, and Line Settings
Hello,
many thanks for adapting the plugins to Fritz!OS version 7.25!
Actually I got the following plugins to run with some of the changes you did - fritzconnection has actually version 0.85 (the highest available version on RPi):
fritzbox_connection_uptime.py
fritzbox_traffic.py
But now on the other plugins I get the following error in the f-statements
Traceback (most recent call last):
File "/etc/munin/plugins/fritzbox_cpu_usage.py", line 22, in <module>
import fritzbox_helper as fh
File "/usr/share/munin/plugins/fritzbox_helper.py", line 93
return f"{challenge_parts[4]}${hash2.hex()}"
^
SyntaxError: invalid syntax
My python version is 3.5.3 - is it possible to replace the f-statements ?
WAN traffic shows the same value for in and out for me on a FB 7580 with latest Firmware 7.25 - other Graphs seem correct. Running Munin on a Debian 10 Buster, installed python modules are:
Package Version
asn1crypto 0.24.0
certifi 2018.8.24
chardet 3.0.4
cryptography 2.6.1
distro-info 0.21
fritzconnection 1.4.2
httplib2 0.11.3
idna 2.6
lxml 4.6.3
pip 21.0.1
prettytable 0.7.2
pycrypto 2.6.1
pycurl 7.43.0.2
PyGObject 3.30.4
PyJWT 1.7.0
PySimpleSOAP 1.16.2
python-apt 1.8.4.3
python-debian 0.1.35
python-debianbts 2.8.2
reportbug 7.5.3-deb10u1
requests 2.25.1
setuptools 40.8.0
six 1.12.0
unattended-upgrades 0.1
urllib3 1.24.1
any help greatly appreciated. Please let me know what else do you need.
Certain scripts require German, while with a simple localization database this should be easily resolved.
I would like to monitor two fritzboxes.
The second one is connected via VPN to my LAN.
I suspect this might not be possible, because the user defines the IP and password in plugin-conf.d.
Hi,
when running the plugin fritzbox_cpu_temperature.py, I get the following error python message:
/ # munin-run fritzbox_cpu_temperature.py Traceback (most recent call last): File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 60, in <module> get_cpu_temperature() File "/etc/munin/plugins/fritzbox_cpu_temperature.py", line 34, in get_cpu_temperature data = json.loads(xhr_data) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
Other fritzbox-munin plugins are running and I have my FritzBOX IP address and password in /etc/munin/plugin-conf.d/fritzbox .
I am using the FritzBOX Model 7362 SL with FritzOS 7.01 .
Any idea what could be wrong?
Best regards,
rforberger
Hi, thanks for this great munin plugin.
I have updated my 7590 to Labor Firmware 07.08-65238 BETA and now most of the stats are gone :-(
2019/02/06 09:25:04 [WARNING] Service fritzbox_cpu_usage_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label cpu
2019/02/06 09:25:11 [WARNING] Service fritzbox_wifi_devices_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label wifi
2019/02/06 09:25:13 [WARNING] Service fritzbox_memory_usage_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label cache
2019/02/06 09:25:13 [WARNING] Service fritzbox_memory_usage_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label strict
2019/02/06 09:25:13 [WARNING] Service fritzbox_memory_usage_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label free
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label system
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label ab
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label dsl
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label usb
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label wifi
2019/02/06 09:25:25 [WARNING] Service fritzbox_power_consumption_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label cpu
2019/02/06 09:25:29 [WARNING] Service fritzbox_cpu_temperature_py on xxx.fritz.box/127.0.0.1:4949 returned no data for label temp
I am not sure, but I think that the "lua" pages are not accessible anymore?
I cannot load these pages after logging in with my fritz.box... I am actually using the scripts from tag 7.0.0, but also tried the ones from master.
I'm not sure if this is a fritzconnection issue or a plugin issue.
I'm running a fresh munin install on Ubuntu 16.04 LTS with proper permissions setup and can see the fritzbox graphs in munin except for those two depended on the fritzconnection module.
pip install fritzconnection
Requirement already satisfied: fritzconnection in /home/nas/.local/lib/python2.7/site-packages
Requirement already satisfied: requests>=2.2.0 in /home/nas/.local/lib/python2.7/site-packages (from fritzconnection)
Requirement already satisfied: lxml>=3.2.5 in /home/nas/.local/lib/python2.7/site-packages (from fritzconnection)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /home/nas/.local/lib/python2.7/site-packages (from requests>=2.2.0->fritzconnection)
Requirement already satisfied: idna<2.7,>=2.5 in /home/nas/.local/lib/python2.7/site-packages (from requests>=2.2.0->fritzconnection)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/nas/.local/lib/python2.7/site-packages (from requests>=2.2.0->fritzconnection)
Requirement already satisfied: certifi>=2017.4.17 in /home/nas/.local/lib/python2.7/site-packages (from requests>=2.2.0->fritzconnection)
version check of fritzconnection:
$ fritzconnection
FritzConnection:
version: 0.6
model: FRITZ!Box 7490
()
running manual test of the fritzbox_traffic plugin:
sudo munin-run fritzbox_traffic.py
Traceback (most recent call last):
File "/etc/munin/plugins/fritzbox_traffic.py", line 20, in <module>
from fritzconnection import FritzConnection
ImportError: No module named fritzconnection
running manual test of the fritzbox_connection_uptime plugin:
sudo munin-run fritzbox_connection_uptime.py
Traceback (most recent call last):
File "/etc/munin/plugins/fritzbox_connection_uptime.py", line 20, in <module>
from fritzconnection import FritzConnection
ImportError: No module named fritzconnection
Note the: "ImportError: No module named fritzconnection"
any idea what could cause this?
my fritzbox is a 7490 at fritzOS 6.83
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.