Closed Ldwg2002 closed 1 year ago
Woah, that's a lot of things for a single issue. I'll try to go through what I understood:
Die fritzbox-munin plugins laufen, nicht ganz problemlos mit 06.8x
Connecting to FRITZ!OS < 07.20 is unsupported, as stated in the requirements. I do not have plans to add support for this myself, since I don't have a test device with that firmware. Pull requests are always welcome though!
wifi_modes.py kopiert wird neighbors, ist das ein Schreibfehler? neighbours
Not sure if I understand this sentence. There is no file wifi_modes.py
in this repository. Do you mean fritzbox_wifi_load.py
? Then again, no, "neighbors" is not an error.
fritzfast_traffic.py kann es sein, dass down und up vertauscht sind? https://github.com/Tafkas/fritzbox-munin/commit/d7929f15fc15d7e132288b262fc025d12a5f498a
This commit is entirely unrelated to fritzbox-munin-fast. It fixes a bug introduced in https://github.com/Tafkas/fritzbox-munin/commit/2dabb02c2c1b8c7c97c71b80c58a7f527b88a116, which was never introduced into this fork. That bug was also not causing up and downlink traffic to be swapped.
To clarify (following the FritzBox manufacturer's specification): Uplink and downlink traffic is viewed from the router to the WAN port. Unless something has changed on AVM's firmware very recently, this should be working. If you're sure it's swapped for you, please provide the exact model name, firmware version (you're mentioning several firmwares in your issue, so I'm not sure which one is affected), and preferably a screenshot of the graph.
# munin node at nas-525a.local list FritzboxConfig FritzboxConfig.py
It looks like you're attempting to execute all of the helper files as Munin plugins. Please do not do so. I'm not sure if I understand how you installed the plugins, since you seem to have renamed all of the plugin files. In case you symlinked the files as described in step 6 of the installation instructions, remove the symlink for FritzboxConfig.py
, then restart munin-node
. I'll update the documentation to make this more clear.
Couldn't retrieve fritzbox energy stats: 'actPerc'
This looks like it might be caused by a recent change in the firmware. Do I read your issue correctly in that this occurs on a FritzBox 3490 running firmware 07.30? If so, please do the following:
data.lua
actPerc
fieldDear RenWal,
thanks for digging through my German post and sorry confusing you with unordered details, background info now as table. I am dealing with this github project since three weeks and I am confused by my own. Facing an initial repository (fritzbox-munin/Tafkas) having 5 contributors and 34 forks. Shouldn't it be the other way round? (rhetorical question) Surprisingly I found a more prospective solution for my deployment in your fork (one of the 34, with little less contributors) using multigraph, TR-064, JSON. And the most important thing - I got an answer very soon :-) thanks a lot, so could step forward over the weekend.
I am interested to build a monitoring solution of two (unusual) FritzBox-deployments (router and access points with manual channel selection and low transmission power of 12 % per antenna), thats it - SOHO scale. A bit IT-skilled, but if I look into your scripts here, I am not a programmer nowadays.
network size | middle | small | munin monitoring with |
router | 7490os07.29 | 3490os07.30 | fritzbox-fast/RenWal |
WiFi 11n 3x3 SU-MIMO | off / in the cellar | ON / in use | fritzbox-fast/RenWal |
WiFi-net | 8 AccessPoints | 2 AccessPoints | my plan to use for |
transmission power | 12 % each | 12 % each | these 6.8x type |
AP 11n 3x3 SU-MIMO | 7272os06.88 | 7272os06.88 | fritzbox/Tafkas |
AP 11n 2x2 SU-MIMO | 7390os06.87 | 7390os06.87 | fritzbox/Tafkas |
AP 11n 2x2 SU-MIMO | 3270v3os05.54 7270v3os06.06 | not having this | |
AP 11g 1x1 | 3131os04.57 | data at all |
Yet I am running (fritzbox-munin/Tafkas) on routers (ok, except energy on 07.30) and not working with AP's 6.8x, issued at https://github.com/Tafkas/fritzbox-munin/issues/61, does not concern here. Now starting parallel with (fritzbox-munin-fast/RenWal) on the routers (both >07.2x). That is the reason for renaming all your plugins to fritzfast to distinguish from fritzbox, because some have the same name (may be they are the same). This way it should be possible to use both repos parallel. Do you have any caveats?
What I addressed in fritzbox_wifi_load.py
, thought a misspelling in the option, but it's both neighbor/American and neighbour/UK, I now reflected myself :-) May be you allow both, to avoid any trouble.
uplink and downlink traffic
thanks for the clarification.
I'll update the documentation to make this more clear.
Thanks a lot for that and sorry for my fault.
The documentation was my main obstacle as newbie in the whole projects here. I did the same way as worked in fritzbox-munin/Tafkas (unclear too) and made sym.links to FritzboxConfig.py but two times, one as FritzboxConfig.py and the second one FritzboxConfig only. So I did Remove the symlink for FritzboxConfig.py, then restart munin-node. and still have the same
Error 1 - 13: import: not found
now only once.
Couldn't retrieve fritzbox energy stats: 'actPerc'
Puh, your task to dig into the depth of http-analyzing was a challenge for us both, describing for you and doing for me. But I am quite sure, that I found what we are looking for 3490os07.30:
{"pid":"energy","hide":{"mobile":true,"liveTv":true,"provServ":true,"shareUsb":true,"ssoSet":true},"time":[],"data":{"drain":[{"cumPerc":37,"actPerc":36,"name":"FRITZ!Box Gesamtsystem","statuses":"aktiv seit 4 Tagen, 11 Stunden, 10 Minuten"},{"cumPerc":72,"actPerc":67,"name":"FRITZ!Box Hauptprozessor","statuses":""},{"cumPerc":38,"actPerc":38,"name":"WLAN","statuses":["WLAN aktiviert","2 WLAN-Netzwerkgeräte angemeldet"]},{"cumPerc":100,"actPerc":100,"name":"DSL","statuses":["Internetverbindung hergestellt"]},{"cumPerc":0,"actPerc":0,"name":"USB-Geräte","statuses":"kein USB-Gerät angeschlossen"},{"statuses":"4 Geräte angeschlossen","name":"LAN-Anschlüsse","lan":[{"name":"LAN 1","class":"green"},{"name":"LAN 2","class":"green"},{"name":"LAN 3","class":"green"},{"name":"LAN 4","class":"green"}]}],"intro":{"text":["Auf dieser Seite finden Sie Informationen zum Energieverbrauch der FRITZ!Box und zu belegten LAN-Schnittstellen."]}},"sid":"3a07118d0037bd4c"}
test00fritzfast ERRORS with both router configs 3490os07.30 and 7490os07.29
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 1: import: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 3: class: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 4: the server address of the Fritzbox (ip or name): not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 5: server: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 6: the port the Fritzbox webserver runs on: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 7: port: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 8: the user name to log into the Fritzbox webinterface: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 9: user: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 10: the password to log into the Fritzbox webinterface: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 11: password: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 12: useTls: not found
2023/01/29-17:15:24 [787818] /etc/munin/plugins/FritzboxConfig: 13: Syntax error: "(" unexpected
2023/01/29-17:15:24 [787818] Service 'FritzboxConfig' exited with status 2/0.
test00fritzfast pointing to 3490os07.30
2023/01/29-17:15:38 [787818] Error output from test00fritzfast_energy.py:
2023/01/29-17:15:38 [787818] Couldn't retrieve fritzbox energy stats: 'actPerc'
2023/01/29-17:15:38 [787818] Service 'test00fritzfast_energy.py' exited with status 1/0.
test00fritzfast pointing to 7490os07.29
no errors! except my fault # on this router wifi is OFF, see table above
2023/01/29-17:31:28 [803203] Error output from test00fritzfast_wifi_load.py:
2023/01/29-17:31:28 [803203] Couldn't retrieve fritzbox wifi load: '24ghz'
2023/01/29-17:31:28 [803203] Service 'test00fritzfast_wifi_load.py' exited with status 1/0.
FritzboxConfig
any idea what causes these messages? Or some commands for investigation? Your fast-plugins seem to work as expected on both boxes, as shown at the end of my inintial post. Energy has low importance for me.
Thanks a lot for your support. Yours Ludwig
I did the same way as worked in fritzbox-munin/Tafkas (unclear too) and made sym.links to FritzboxConfig.py but two times, one as FritzboxConfig.py and the second one FritzboxConfig only. So I did Remove the symlink for FritzboxConfig.py, then restart munin-node. and still have the same Error 1 - 13: import: not found now only once.
Please also remove the FritzboxConfig
symlink.
Couldn't retrieve fritzbox energy stats: 'actPerc'
Huh, this one is interesting. Am I right to assume that you have the answering machine disabled in that FritzBox? I think doing so hides its energy statistics completely on 7.30, which then causes fritzbox_energy.py
to run over the end of the energy statistics array.
Before I make a permanent change that fixes this, can you please try the following?
fritzbox_energy.py
in line 31 and remove 'ab',
from the DEVICES
arraymunin-node
I can report full success to you. No errors concerning fritzfast. Now I have to fiddle with the right munin config to show my first multigraphs of test00fritzfast.
FritzboxConfig symlink is deleted - no errors
So it is good to know a bit about the circumstances, to make the right assumptions. You are right. In the menue phone I don't use anything. 10 phone numbers are listed but not active. In mobile phone times nobody is missing. Later we have to consider, if a newer OS>07.20 is used as AccessPoint only the "dsl" part is OFF too. Is it removed?. And "wifi"?
fritzbox_energy.py line 31
DEVICES = ['system', 'cpu', 'wifi', 'dsl', 'usb', 'lan']
munin-run test00fritzfast_energy.py
multigraph power
system.value 38
cpu.value 76
wifi.value 38
dsl.value 100
usb.value 0
multigraph devices
wifi.value 3
lan.value 4
multigraph uptime
uptime.value 5.03
Thanks a lot. Yesterday I tried my 7490 spare box with LaborOS 07.51 because I intend tu use WireGuard. It worked without problems, ecen AVM altered the design a bit and the webGUI feels a little faster. I will continue and keep the 7490os07.29 as spare part.
Support questions addressed. Closing in favor of #6 and #7
thank's for all.
Zwei Router (im VPN) und zwei kleinere WiFi-Netze möchte ich gerne mit fritzbox-munin/fast überwachen. Die fritzbox-munin plugins laufen, nicht ganz problemlos mit 06.8x. Details hier https://github.com/Tafkas/fritzbox-munin/issues/62#issue-1530814006 Möglichkeiten und Ergebnisse stellen mich prinzipiell zufrieden. Aber die Stichworte "fast, multigraph" haben mich zu diesem fork gebracht, für
/ WiFi uplink and downlink bandwidth usage / neighbor APs on same and on different channels
config # Was mache ich falsch?
Anmerkungen und Tests
wifi_modes.py kopiert wird neighbors, ist das ein Schreibfehler? neighbours
fritzfast_traffic.py kann es sein, dass down und up vertauscht sind? https://github.com/Tafkas/fritzbox-munin/commit/d7929f15fc15d7e132288b262fc025d12a5f498a