Closed pthoelken closed 5 months ago
Now I have a little bit more time to investigate your request. Sorry for the late reply.
As I understand you correctly @Lorgie1984 you mean the physical up and downstream rate from your internet provider, right? I fetch this already (usually on page 2 in latest data from your fritzbox host in zabbix.)
This is only the max bitrate from the DSL sync, I meant the traffic rate for layer1. Active down and upstream just for dsl, not the whole FRITZ!Box trafficVon meinem iPhone gesendetAm 27.10.2023 um 11:25 schrieb Patrick Thoelken @.***>: Now I have a little bit more time to investigate your request. Sorry for the late reply. As I understand you correctly @Lorgie1984 you mean the physical up and downstream rate from your internet provider, right? I fetch this already (usually on page 2 in latest data from your fritzbox host in zabbix.)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
IMO this is the speed what you get from your ISP like Telekom, Vodafone, etc. If the isp internet connection (from your contract) is throttled the values will be updates.
Or do you mean the real internet connection speed like a speedtest and these values put it into the zabbix fritzbox monitoring? I've do this in some versions ago on a local test stage but I've not implemented bc ...
So, the "layer1DownstreamMaxBitRate" means the "configured" (by ISP) connection speed from ISP backbone to your fritzbox. The only way to determine the real-real speed is to implement a chronical speed test.
Let me know if this helps a little. Otherwise I can show, how I implement a speedtest to this monitor in a modular function (so it means you can turn it on and off by a True / False value in the docker-compose.yml for example).
Ich antworte mal eben auf deutsch, da mein Englisch nicht so ausgeprägt ist :-D
Es wäre schön zu sehen, wieviel Traffic aktuell auf der DSL-Leitung verursacht wird. Die Werte fritz.box: totalBytesSentRate & fritz.box: totalBytesReceivedRate zeigen augenscheinlich den gesamten Verkehr der Fritzbox an, auch im lokalen Netz, was ausschläge über 350Mbit/s enthält.
Was mich interessiert, ist der Datendurchsatz der DSL-Leitung. Wieviel Up-/Download aktiv genutzt wird.
So dass ich im Verlauf z.B. sehen kann, ob nachts aktiver Traffic auf der Leitung von/nach aussen aktiv war.
Ich wüsste es jetzt nicht anders auszudrücken.
Ahhh, nun verstehe ich dich. Du meinst also die Usage / Nutzung der Layer1 Leitung (also die des DSL Kabels)? Gute Idee, jetzt wo ich drüber nachdenke interessiert es mich auch :D
Ich schaue mal wie ich das umsetzen kann und melde mich dann wieder in den kommenden Tagen.
Hängt auch ein wenig damit zusammen, was ich aus der Fritzbox auslesen kann, wenn ich es lesen kann, dann kann ich es auch einbauen. Ich halte dich auf dem laufenden hier.
@Lorgie1984 - kannst du mir noch kurz sagen unter welche Zabbix Version nutzt du das ganze und kannst du die neuen Templates aus dem Templates Ordner auch importieren oder bekommst du da wie in #10 ebenfalls Probleme mit?
Gerade getestet:
Kurzes Update, ich habe dein Feature so gut wie umgesetzt. Muss gerade nur noch schauen, wie ich mit den Multilayer Values umgehe, welche ich bekomme, wenn ich DOCSIS Anschluss habe.
Gerade getestet:
Erst das alte Template löschen und dann das neue importieren. Wenn das alte Template noch vorhanden ist, kann es zu solchen Fehlern kommen.
@Lorgie1984 - magst du mir vielleicht einen Gefallen tun?
Magst du dir mal das Image mit dem Tag :fr-09 ziehen und ganz normal mit deiner docker-compose.yml starten? Dann in den Container gehen und folgendes ausführen ....
while true; do php dev.php | grep -i downstream; sleep 1; done
... und anschließend ein wenig herunterladen? Am besten diese Testdatei hier http://ping.virtua.cloud/10GB.bin (kannst du anschließend wieder löschen).
Bitte dann einmal das Ergebnis hier posten.
Ich habe das Problem, dass ich ein Cable (DOCSIS) Anschluss habe und ich x-verschiedene Layer zurückbekomme in der Utilization. Ich möchte gerne wissen, ob das bei einem normalen DSL Anschluss ebenfalls der Fall ist.
Danke für deine Mithilfe.
Trotz löschen kommt der Fehler. Jetzt hab ich das alte Template nicht mehr da :-D
Sehr komisch, ich konnte das Template ohne Probleme importieren. https://github.com/pthoelken/fritzbox-zabbix-monitoring/blob/main/templates/template_avm_fritzbox.xml
Aber hier ist noch das alte: https://github.com/pthoelken/fritzbox-zabbix-monitoring/blob/382c1d8dce326b784f797a414c4e77f98f1bdd4d/templates/template_fritz.box.xml
Aber das Template brauchst du für die Anfrage von mir https://github.com/pthoelken/fritzbox-zabbix-monitoring/issues/9#issuecomment-1793020500 auch nicht extra :-)
Der Container lässt keine bash zu und gibt einen Fehler aus:
Der Container lässt keine bash zu und gibt einen Fehler aus:
docker exec -it container_name /bin/bash
Kleiner Zusatz, bin jetzt im Container (bash mochte er nicht, aber sh), aber mir ist aufgefallen, das mit dem Container in Zabbix keine Werte zurückkommen und bei dem Befehl ausser dem Cursor nicht viel passiert (Download läuft).
pthoelken/fritzbox-zabbix-monitoring:fr-09
Das Image zum Testen ist aber noch korrekt oder?
Ja, sorry. Ich habe gepennt, /bin/ash geht auch (ist ein Alpine Image). Führe mal bitte diesen Befehl aus.
while true; do php dev.php; sleep 1; done
Also quasi ohne grep
.
Das ist der volle Befehl um in die CLI in des Conatiners zu kommen.
docker exec -it container_name /bin/ash
pthoelken/fritzbox-zabbix-monitoring:fr-09
Das Image zum Testen ist aber noch korrekt oder?
Ja, genau, das ist korrekt.
Bei mir kommt am ende so etwas heraus:
root@server01:/srv/data/composing/fritzmon# docker exec -it fritzmon_fritzbox-zabbix-monitoring_1 /bin/ash
/app # while true; do php dev.php; sleep 1; done
fritz.box layer1DownstreamCurrentUtilization 10332,18589,8273,7870,395832,5757,12604,3184,853745,542345,12059,418427,7545,2820,309664,309664,12159,72446,5182,3196
fritz.box layer1DownstreamCurrentUtilization 7402,17340,40858,13558,5244,7610,21722,17779,10620,3684,11561,21585,16260,2163,6281,5790,11031,7971,6877,2631
fritz.box layer1DownstreamCurrentUtilization 10332,18589,8273,7870,395832,5757,12604,3184,853745,542345,12059,418427,7545,2820,309664,309664,12159,72446,5182,3196
fritz.box layer1DownstreamCurrentUtilization 7402,17340,40858,13558,5244,7610,21722,17779,10620,3684,11561,21585,16260,2163,6281,5790,11031,7971,6877,2631
fritz.box layer1DownstreamCurrentUtilization 10332,18589,8273,7870,395832,5757,12604,3184,853745,542345,12059,418427,7545,2820,309664,309664,12159,72446,5182,3196
fritz.box layer1DownstreamCurrentUtilization 7402,17340,40858,13558,5244,7610,21722,17779,10620,3684,11561,21585,16260,2163,6281,5790,11031,7971,6877,2631
fritz.box layer1DownstreamCurrentUtilization 10332,18589,8273,7870,395832,5757,12604,3184,853745,542345,12059,418427,7545,2820,309664,309664,12159,72446,5182,3196
fritz.box layer1DownstreamCurrentUtilization 7402,17340,40858,13558,5244,7610,21722,17779,10620,3684,11561,21585,16260,2163,6281,5790,11031,7971,6877,2631
sudo docker exec -it 5cb437cc50e6 /bin/ash
/app # while true; do php dev.php; sleep 1; done
fritz.box layer1DownstreamCurrentUtilization 2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778,3627524,3853992
fritz.box layer1DownstreamCurrentUtilization 887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776,94738,104956
fritz.box layer1DownstreamCurrentUtilization 2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778,3627524
fritz.box layer1DownstreamCurrentUtilization 1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776,94738
fritz.box layer1DownstreamCurrentUtilization 2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778,3627524
fritz.box layer1DownstreamCurrentUtilization 1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776,94738
fritz.box layer1DownstreamCurrentUtilization 2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778,3627524
fritz.box layer1DownstreamCurrentUtilization 1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776,94738
fritz.box layer1DownstreamCurrentUtilization 2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778,3627524
fritz.box layer1DownstreamCurrentUtilization 1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776,94738
fritz.box layer1DownstreamCurrentUtilization 2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778
fritz.box layer1DownstreamCurrentUtilization 1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776
fritz.box layer1DownstreamCurrentUtilization 2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778
fritz.box layer1DownstreamCurrentUtilization 1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776
fritz.box layer1DownstreamCurrentUtilization 2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778
fritz.box layer1DownstreamCurrentUtilization 1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776
fritz.box layer1DownstreamCurrentUtilization 2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239,3301778
fritz.box layer1DownstreamCurrentUtilization 1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513,1281776
fritz.box layer1DownstreamCurrentUtilization 2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239
fritz.box layer1DownstreamCurrentUtilization 757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513
fritz.box layer1DownstreamCurrentUtilization 2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239
fritz.box layer1DownstreamCurrentUtilization 757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513
fritz.box layer1DownstreamCurrentUtilization 2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265,3723239
fritz.box layer1DownstreamCurrentUtilization 757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496,102513
fritz.box layer1DownstreamCurrentUtilization 2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265
fritz.box layer1DownstreamCurrentUtilization 1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496
fritz.box layer1DownstreamCurrentUtilization 2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265
fritz.box layer1DownstreamCurrentUtilization 1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496
fritz.box layer1DownstreamCurrentUtilization 2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265
fritz.box layer1DownstreamCurrentUtilization 1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496
fritz.box layer1DownstreamCurrentUtilization 2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563,3366265
fritz.box layer1DownstreamCurrentUtilization 1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972,1798496
fritz.box layer1DownstreamCurrentUtilization 3542749,2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563
fritz.box layer1DownstreamCurrentUtilization 1215671,1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972
fritz.box layer1DownstreamCurrentUtilization 3542749,2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563
fritz.box layer1DownstreamCurrentUtilization 1215671,1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972
fritz.box layer1DownstreamCurrentUtilization 3542749,2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563
fritz.box layer1DownstreamCurrentUtilization 1215671,1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972
fritz.box layer1DownstreamCurrentUtilization 3542749,2843300,2942403,2743060,2661268,2905673,5951257,2840404,3260000,3595326,3319124,3044503,3376793,3195152,3820720,3632018,3440547,3433777,3271762,2947563
fritz.box layer1DownstreamCurrentUtilization 1215671,1095601,757948,1084941,1423978,887548,979286,871133,531039,1089393,883612,978331,980883,659116,399273,553437,1207689,1202603,4057199,3400972
Danke dir @Lorgie1984 - hast du DSL, Glasfaser oder Cable Anschluss?
VDSL 100
Aus zeitgründen kann ich das gerade leider nicht weiter verfolgen. Tut mir leid. Ist leider ein sehr zähes Stück Fleisch sauber an die Daten zu kommen.
from @Lorgie1984
Is it possible to fetch the layer1 down and upstream?Actually there’s only totalBytesSendRate and receive which fetch’s the traffic also from the internal network. Internet traffic would be really nice. 😊