Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporter not starting on a FritzBox 4040 because of UPNPError 820 #39

Closed
monsdar opened this issue Mar 29, 2021 · 9 comments
Closed

Exporter not starting on a FritzBox 4040 because of UPNPError 820 #39

monsdar opened this issue Mar 29, 2021 · 9 comments

Comments

@monsdar
Copy link

monsdar commented Mar 29, 2021

Disclaimer: Posting this as kind of a self-post to help anyone with a similar problem in the future.

When running the exporter and connecting to my FritzBox 4040 it immediately hangs up with a UPNPError with errorcode 820. This is simply the code for internal error. The stacktrace suggests that the exception occurs during FritzCapability::checkCapability.

@monsdar
Copy link
Author

monsdar commented Mar 29, 2021

I was able to work around that by simply catching any FritzInternalError alongside the previously caught ServiceError and ActionError. Not putting this in a PR, not sure if this is really a solution and not a dirty hack. Here's my checkCapability function now:

from fritzconnection.core.exceptions import ActionError, ServiceError, FritzInternalError
[...]
class FritzCapability(ABC):
[...]
    def checkCapability(self, device):
[...]
        # It seems some boxes report service/actions they don't actually support. So try calling the requirements, and if it throws "InvalidService" or "InvalidAction", disable thi$
        if self.present:
            for (svc, action) in self.requirements:
                try:
                    logger.info(f'Checking out service {svc}, action {action}')
                    device.fc.call_action(svc, action)
                except (ServiceError, ActionError, FritzInternalError) as e:
                    logger.warn(f'disabling metrics at service {svc}, action {action} - fritzconnection.call_action returned {e}')
                    self.present = False

@monsdar
Copy link
Author

monsdar commented Mar 29, 2021

With the hack implemented one can see that the following capabilities seem to cause issues:

WARNING:fritzexporter.fritzcapabilities:disabling metrics at service WANDSLInterfaceConfig1, action GetInfo - fritzconnection.call_action returned UPnPError:
errorCode: 820
errorDescription: Internal Error
WARNING:fritzexporter.fritzcapabilities:disabling metrics at service WANPPPConnection1, action GetStatusInfo - fritzconnection.call_action returned UPnPError:
errorCode: 401
errorDescription: Invalid Action

Though I must say that a few other metrics are not working as well. They simply do not return any meaningful data. Including the Host-metrics which I activated for testing purposes.

@monsdar monsdar closed this as completed Mar 29, 2021
@pdreker
Copy link
Owner

pdreker commented Mar 30, 2021

Host metrics have received very little testing as running a 60s scrape interval with every scrape running for 30s does not make too much sense in a "Home" Environment and may actually impact the Fritz!Box due to the sheer number of requests being sent to it.

I would still be interested in a "commented output" from the exporter from your box. Simply run curl against the exporter after starting it and edit the output. You can remove all standard comments, and annotate the metrics returned with your own comments regarding if the metrics makes sense, are right/wrong and maybe comparing them to what you can see in the WebUI of the box.

Fritz!Box 4040 is the "plain" router version, if I am not mistaken, so it has no integrated DSL Modem. As such there may very well be some statistics, which are simply wrong or missing, even though they are advertised by the box.

I would be very interested in making this exporter work and be useful against as many Fritz!Boxes as possible.

Also: please don't open -> comment -> close issues, as closed issue do not show up by default in GitHub and so if I forget the mails I got, they will just "go under". I'll reopen this, as the "Internal Error" is an actual issue, which needs to be checked.

@pdreker
Copy link
Owner

pdreker commented Mar 30, 2021

I have added FritzInternalError to the capability scanner, as this is exactly what that part of the code is for: Reported capabilities are checked against if they actually work.

The code is currently in the develop branch and will be available in the next release.

@monsdar
Copy link
Author

monsdar commented Mar 30, 2021

Of course, here you are:



###
# Note: I removed all Python metrics and comments. Added my own where it makes sense.
###

#My setup is as follows:
# F0B0146173D9 - Fritzbox 4040 which is connected to the WAN (Cable router)
# 7CFF4D5FCFC0 - Repeater 310 connected via WLAN
# 2C91AB69CB3B - Repeater 1200 connected via LAN
# 2C91AB63C57B - Repeater 1200 connected via LAN
#
# All of them belong to the same Mesh, though the 2C91AB63C57B Repeater sometimes is joined, sometimes not. Haven't figured out what causes this, but it does not cause any issues.
fritz_uptime_seconds_total{modelname="FRITZ!Box 4040",serial="F0B0146173D9",softwareversion="155.07.14"} 158967.0
fritz_uptime_seconds_total{modelname="FRITZ!WLAN Repeater 310",serial="7CFF4D5FCFC0",softwareversion="143.07.13"} 158985.0
fritz_uptime_seconds_total{modelname="FRITZ!Repeater 1200",serial="2C91AB69CB3B",softwareversion="172.07.21"} 158993.0
fritz_uptime_seconds_total{modelname="FRITZ!Repeater 1200",serial="2C91AB63C57B",softwareversion="172.07.21"} 158995.0


fritz_known_devices_count{serial="F0B0146173D9"} 62.0
fritz_known_devices_count{serial="7CFF4D5FCFC0"} 56.0
fritz_known_devices_count{serial="2C91AB69CB3B"} 34.0
fritz_known_devices_count{serial="2C91AB63C57B"} 34.0
fritz_update_available{newsoftwareversion="",serial="F0B0146173D9"} 0.0
fritz_update_available{newsoftwareversion="",serial="7CFF4D5FCFC0"} 0.0
fritz_update_available{newsoftwareversion="",serial="2C91AB69CB3B"} 0.0
fritz_update_available{newsoftwareversion="",serial="2C91AB63C57B"} 0.0

fritz_lan_status_enabled{serial="F0B0146173D9"} 1.0
fritz_lan_status{serial="F0B0146173D9"} 1.0

#The LAN measures always are 0.0
fritz_lan_data_bytes_total{direction="rx",serial="F0B0146173D9"} 0.0
fritz_lan_data_bytes_total{direction="tx",serial="F0B0146173D9"} 0.0
fritz_lan_packet_count_total{direction="rx",serial="F0B0146173D9"} 0.0
fritz_lan_packet_count_total{direction="tx",serial="F0B0146173D9"} 0.0

#### WAN seems to work fine
fritz_wan_max_bitrate_bps{direction="tx",serial="F0B0146173D9",wantype="Ethernet"} 12000.0
fritz_wan_max_bitrate_bps{direction="rx",serial="F0B0146173D9",wantype="Ethernet"} 120000.0
fritz_wan_phys_link_status{serial="F0B0146173D9",wantype="Ethernet"} 1.0
fritz_wan_data_bytes_total{direction="up",serial="F0B0146173D9"} 1.314445878e+09
fritz_wan_data_bytes_total{direction="down",serial="F0B0146173D9"} 1.038969022e+09
fritz_wan_data_packets_count_total{direction="up",serial="F0B0146173D9"} 4.879675e+06
fritz_wan_data_packets_count_total{direction="down",serial="F0B0146173D9"} 8.729415e+06


#### 2.4GHz Wifi
fritz_wifi_2_4GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.0
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.19858e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 3.771243e+06
fritz_wifi_2_4GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 3.0
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.19858e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 3.771243e+06
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.376886e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 2.854867e+06
fritz_wifi_2_4GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 3.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 9.0
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.19858e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 3.771243e+06
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.376886e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 2.854867e+06
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 3.817515e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 1.0373418e+07
fritz_wifi_2_4GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_status{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 6.0
fritz_wifi_2_4GHz_channel{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 3.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 9.0
fritz_wifi_2_4GHz_associations_count{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi",standard="n"} 1.0
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 2.19858e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi",standard="n"} 3.771243e+06
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 1.376886e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="7CFF4D5FCFC0",ssid="PrettyFlyForAWifi",standard="n"} 2.854867e+06
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 3.817515e+06
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi",standard="n"} 1.0373418e+07
fritz_wifi_2_4GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi",standard="n"} 379836.0
fritz_wifi_2_4GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi",standard="n"} 812737.0


#### 5 GHz Wifi
fritz_wifi_5GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 100.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 156.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 2634.0
fritz_wifi_5GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_status{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 100.0
fritz_wifi_5GHz_channel{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_associations_count{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 156.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 2634.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_status{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_status{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 100.0
fritz_wifi_5GHz_channel{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_5GHz_channel{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 44.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_associations_count{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 156.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 2634.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 4880.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 210485.0
fritz_wifi_5GHz_status{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_status{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_status{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_status{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_channel{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 100.0
fritz_wifi_5GHz_channel{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_5GHz_channel{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 44.0
fritz_wifi_5GHz_channel{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 124.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_associations_count{enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 0.0
fritz_wifi_5GHz_associations_count{enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 156.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="F0B0146173D9",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 2634.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="0",serial="7CFF4D5FCFC0",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 4880.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB69CB3B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 210485.0
fritz_wifi_5GHz_packets_count_total{direction="rx",enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 150382.0
fritz_wifi_5GHz_packets_count_total{direction="tx",enabled="1",serial="2C91AB63C57B",ssid="PrettyFlyForAWifi 5Ghz",standard="ac"} 1.230661e+06


##### Guest Wifi is disabled
fritz_wifi_guest_status{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_channel{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_guest_associations_count{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_status{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_status{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_channel{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_guest_channel{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_guest_associations_count{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_associations_count{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_status{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_status{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_status{enabled="0",serial="2C91AB63C57B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_channel{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_guest_channel{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 6.0
fritz_wifi_guest_channel{enabled="0",serial="2C91AB63C57B",ssid="FRITZ!Box guest access",standard="n"} 1.0
fritz_wifi_guest_associations_count{enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_associations_count{enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_associations_count{enabled="0",serial="2C91AB63C57B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="F0B0146173D9",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="2C91AB69CB3B",ssid="FRITZ!Box guest access",standard="n"} 0.0
fritz_wifi_guest_packets_count_total{direction="rx",enabled="0",serial="2C91AB63C57B",ssid="FRITZ!Box guest access",standard="n"} 8.0
fritz_wifi_guest_packets_count_total{direction="tx",enabled="0",serial="2C91AB63C57B",ssid="FRITZ!Box guest access",standard="n"} 0.0

@pdreker
Copy link
Owner

pdreker commented Mar 31, 2021

This doesn't look half bad in my opinion 😀

But some questions remain:

  1. Is there actually anything connected to your LAN ports or is everything running via WiFi? If there is nothing connected the statistics will obviously remain at 0, as there is no LAN traffic to count...
  2. Interestingly your Repeater 310 reports the Guest WiFi SSID in the 5GHz output (and it is marked as "disabled", so this is "somewhat correct"...). Could you check, if you can see anything different on that repeater compared to the other devices?

Why am I asking all those questions? I am thinking about making the exporter more configurable or a bit "smarter" in detecting and sorting the data, but I need as much information about different systems and setups to make it that way without breaking other setups.

Thanks again!

@monsdar
Copy link
Author

monsdar commented Mar 31, 2021

You're right, most of what's missing makes sense.

Regarding the LAN: both of the Repeater 1200 are connected via LAN. Then there's a switch connected which itself has a bunch of raspberry pis (pihole, openhab, some custom stuff) and my desktop computer connected. At least the desktop has caused some traffic during the last days. I will check more thoroughly if perhaps the timespan in grafana was not set to show the traffic.

I'll see for the guest/5ghz Repeater mixup on the evening when i have a bit more time. Good find!

Happy to help out, keep asking anything that could help.

@monsdar
Copy link
Author

monsdar commented Mar 31, 2021

sum(fritz_lan_packet_count_total) in Prometheus gives me 0

@pdreker
Copy link
Owner

pdreker commented Mar 31, 2021

My repeaters don't even report LAN Statistics as available (FritzOS 7.21)... Might very well be, that those aren't counted.

@pdreker pdreker closed this as completed May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants