Giter Club home page Giter Club logo

fritzbox-munin-fast's People

Contributors

bobvandevijver avatar cweiske avatar ma4nn avatar renwal avatar tafkas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ma4nn

fritzbox-munin-fast's Issues

Docs: Improve setup instructions

It's currently not entirely clear what all the symlinks are that you're supposed to create.

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.

Originally posted by @Ldwg2002 in #5 (comment)

We should also consider reorganizing the code base into plugins and helper files stored separately from each other to avoid this confusion in the first place.

AttributeError: 'NoneType' object has no attribute 'split'

the plugins are currently failing with:

2022/08/13-07:23:23 Munin::Node::Server (type Net::Server::Fork) starting! pid(4147623)
Binding to TCP port 4949 on host 127.0.0.1 with IPv4
Setting gid to "0 0"
2022/08/13-07:23:23 [4147623] Error output from fritzbox_dsl.py:
2022/08/13-07:23:23 [4147623] Traceback (most recent call last):
2022/08/13-07:23:23 [4147623] File "/etc/munin/plugins/fritzbox_dsl.py", line 150, in
2022/08/13-07:23:23 [4147623] print_config()
2022/08/13-07:23:23 [4147623] File "/etc/munin/plugins/fritzbox_dsl.py", line 114, in print_config
2022/08/13-07:23:23 [4147623] modes = get_modes()
2022/08/13-07:23:23 [4147623] File "/etc/munin/plugins/fritzbox_dsl.py", line 55, in get_modes
2022/08/13-07:23:23 [4147623] return os.getenv('dsl_modes').split(' ')
2022/08/13-07:23:23 [4147623] AttributeError: 'NoneType' object has no attribute 'split'
2022/08/13-07:23:23 [4147623] Service 'fritzbox_dsl.py' exited with status 1/0.
2022/08/13-07:23:24 [4147623] Error output from fritzbox_energy.py:
2022/08/13-07:23:24 [4147623] Traceback (most recent call last):
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_energy.py", line 166, in
2022/08/13-07:23:24 [4147623] print_config()
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_energy.py", line 114, in print_config
2022/08/13-07:23:24 [4147623] modes = get_modes()
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_energy.py", line 54, in get_modes
2022/08/13-07:23:24 [4147623] return os.getenv('energy_modes').split(' ')
2022/08/13-07:23:24 [4147623] AttributeError: 'NoneType' object has no attribute 'split'
2022/08/13-07:23:24 [4147623] Service 'fritzbox_energy.py' exited with status 1/0.
2022/08/13-07:23:24 [4147623] Error output from fritzbox_ecostat.py:
2022/08/13-07:23:24 [4147623] Traceback (most recent call last):
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_ecostat.py", line 119, in
2022/08/13-07:23:24 [4147623] print_config()
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_ecostat.py", line 75, in print_config
2022/08/13-07:23:24 [4147623] modes = get_modes()
2022/08/13-07:23:24 [4147623] File "/etc/munin/plugins/fritzbox_ecostat.py", line 34, in get_modes
2022/08/13-07:23:24 [4147623] return os.getenv('ecostat_modes').split(' ')
2022/08/13-07:23:24 [4147623] AttributeError: 'NoneType' object has no attribute 'split'
2022/08/13-07:23:24 [4147623] Service 'fritzbox_ecostat.py' exited with status 1/0.
2022/08/13-07:23:28 [4147623] Error output from fritzbox_wifi_load.py:
2022/08/13-07:23:28 [4147623] Traceback (most recent call last):
2022/08/13-07:23:28 [4147623] File "/etc/munin/plugins/fritzbox_wifi_load.py", line 125, in
2022/08/13-07:23:28 [4147623] print_config()
2022/08/13-07:23:28 [4147623] File "/etc/munin/plugins/fritzbox_wifi_load.py", line 95, in print_config
2022/08/13-07:23:28 [4147623] freqs = get_freqs()
2022/08/13-07:23:28 [4147623] File "/etc/munin/plugins/fritzbox_wifi_load.py", line 48, in get_freqs
2022/08/13-07:23:28 [4147623] return os.getenv('wifi_freqs').split(' ')
2022/08/13-07:23:28 [4147623] AttributeError: 'NoneType' object has no attribute 'split'
2022/08/13-07:23:28 [4147623] Service 'fritzbox_wifi_load.py' exited with status 1/0.

Error output from FritzboxConfig.py: 1 - 13: not found

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 Tafkas#62 (comment) Möglichkeiten und Ergebnisse stellen mich prinzipiell zufrieden. Aber die Stichworte "fast, multigraph" haben mich zu diesem fork gebracht, für

  • einen Überblick über den Verkehr am WAN/Router, gerne Info über die Qualität der DSL-Leitung
  • Info zur Auslastung im "shared medium" WiFi an allen Antennen (AccessPoints, bis zu 8 Stk).
Diese drei plugins sollten genau das leisten:
_link_saturation.py Multigraph plugin, showing saturation of WAN uplink and downlink by QoS priority
_traffic.py Similar to fritzbox_link_saturation, but single-graph and without QoS monitoring.
_wifi_load.py Multigraph plugin, showing for 2.4GHz and 5GHz
/ WiFi uplink and downlink bandwidth usage / neighbor APs on same and on different channels

config # Was mache ich falsch?

See the plugin files for plugin-specific configuration options.
Völlig übersehen hatte ich diesen Hinweis in der Anleitung !!!! Den Issue https://github.com/RenWal/fritzbox-munin-fast/blob/master/src/fritzbox_dsl.py#L10 habe ich gelesen, aber eine funktionsfähige Config bekomme ich nicht hin.

vi /etc/munin/munin.conf
[munin.plugin;test00fritzfast]
     address 127.0.0.1      # address  localhost # take from plugin.conf
     use_node_name      no  # access by node-name=yes ip-address=no
vi /etc/munin/plugin-conf.d/munin-node
[test00fritzfast_*]  # env.host_name connects to entry in /etc/munin/munin.conf
env.host_name      test00fritzfast
env.fritzbox_ip    192.168.xyz.1   ### 3490os07.30 ### router
env.fritzbox_user       trusted
env.fritzbox_password   passwd
env.fritzbox_use_tls    false
env.dsl_modes      capacity   snr   damping   errors   crc 
env.ecostat_modes  cpu   temp   ram 
env.energy_modes   power   devices   uptime 
env.energy_product DSL
env.traffic_remove_max   1 
env.wifi_freqs     24 
env.wifi_modes   freqs    neighbors 

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? Tafkas@d7929f1

ls /usr/share/munin/plugins/fritzfast* 
/usr/share/munin/plugins/fritzfast_connection_uptime.py
/usr/share/munin/plugins/fritzfast_dsl.py
/usr/share/munin/plugins/fritzfast_ecostat.py
/usr/share/munin/plugins/fritzfast_energy.py
/usr/share/munin/plugins/fritzfast_link_saturation.py
/usr/share/munin/plugins/fritzfast_smart_home_temperature.py
/usr/share/munin/plugins/fritzfast_traffic.py
/usr/share/munin/plugins/fritzfast_wifi_load.py
 ls -l /usr/share/munin/plugins/fritzfast* 
-rwxr-xr-x 1 munin munin 2219 26. Jan 19:59 /usr/share/munin/plugins/fritzfast_connection_uptime.py
ls /usr/share/munin/plugins/test00fritzfast*
test00fritzfast_connection_uptime.py  test00fritzfast_link_saturation.py
test00fritzfast_dsl.py                test00fritzfast_smart_home_temperature.py
test00fritzfast_ecostat.py            test00fritzfast_traffic.py
test00fritzfast_energy.py             test00fritzfast_wifi_load.py
netcat 192.168.munin.master  4949
# munin node at nas-525a.local
list
FritzboxConfig FritzboxConfig.py 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 
test00fritzfast_connection_uptime.py test00fritzfast_smart_home_temperature.py test00fritzfast_traffic.py 
threads users vmstat
service munin-node restart 
tail -f /var/log/munin/munin-node.log

# fritzbox-plugins # fritzfast-plugins
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36368" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36406" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36356" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36394" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36416" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36408" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36420" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:25:02 CONNECT TCP Peer: "[::ffff:127.0.0.1]:36434" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:26:16 [855778] Service 'test42fritzfast_wifi_load.py' timed out.
2023/01/27-14:26:19 CONNECT TCP Peer: "[::ffff:127.0.0.1]:59700" Local: "[::ffff:127.0.0.1]:4949"
2023/01/27-14:26:36 [855778] Error output from FritzboxConfig:
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 1: import: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 3: class: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 4: the server address of the Fritzbox (ip or name): not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 5: server: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 6: the port the Fritzbox webserver runs on: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 7: port: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 8: the user name to log into the Fritzbox webinterface: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 9: user: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 10: the password to log into the Fritzbox webinterface: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 11: password: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 12: useTls: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 13: Syntax error: "(" unexpected
2023/01/27-14:26:36 [855778] Service 'FritzboxConfig' exited with status 2/0.
2023/01/27-14:26:36 [855778] Error output from FritzboxConfig:
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 1: import: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 3: class: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 4: the server address of the Fritzbox (ip or name): not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 5: server: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 6: the port the Fritzbox webserver runs on: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 7: port: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 8: the user name to log into the Fritzbox webinterface: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 9: user: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 10: the password to log into the Fritzbox webinterface: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 11: password: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 12: useTls: not found
2023/01/27-14:26:36 [855778]    /etc/munin/plugins/FritzboxConfig: 13: Syntax error: "(" unexpected
2023/01/27-14:26:36 [855778] Service 'FritzboxConfig' exited with status 2/0.
2023/01/27-14:26:52 [855778] Error output from test00fritzfast_energy.py:
2023/01/27-14:26:52 [855778]    Couldn't retrieve fritzbox energy stats: 'actPerc'
2023/01/27-14:26:52 [855778] Service 'test00fritzfast_energy.py' exited with status 1/0.
munin-run  test00fritzfast_ecostat.py
multigraph cpuload
load.value 3
multigraph cputemp
temp.value 51
multigraph ramusage
strict.value 28.1
cache.value 46.2
free.value 25.7

munin-run  test00fritzfast_energy.py
multigraph power
system.value 40
cpu.value 84
wifi.value 38
dsl.value 100
ab.value 0
Couldn't retrieve fritzbox energy stats: 'actPerc'
Warning: the execution of 'munin-run' via 'systemd-run' returned an error. 
This may either be caused by a problem with the plugin to be executed or a failure 
of the 'systemd-run' wrapper. Details of the latter can be found via 'journalctl'.

munin-run  test00fritzfast_dsl.py
multigraph dsl_capacity
recv.value 72908
send.value 34743
multigraph dsl_snr
recv.value 11
send.value 21
multigraph dsl_damping
recv.value 13
send.value 13
multigraph dsl_errors
es_recv.value 8
es_send.value 0
ses_recv.value 0
ses_send.value 0
multigraph dsl_crc
recv.value 0
send.value 0

munin-run  test00fritzfast_link_saturation.py 
multigraph saturation_up
up_realtime.value 332
up_high.value 989
up_default.value 54357
up_low.value 0
maxup.value 12347000
multigraph saturation_down
dn_internet.value 161201
dn_iptv.value 0
maxdown.value 61738000

munin-run  test00fritzfast_wifi_load.py
multigraph bandwidth_24ghz
24ghz_recv.value 12
24ghz_send.value 7
multigraph neighbors_24ghz
24ghz_samechan.value 9
24ghz_otherchans.value 7

munin-run  test00fritzfast_traffic.py
down.value 6814
up.value 5482

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.