sberk42/fritzbox_exporter

UPnPError 401 (Invalid Action)

Closed this issue · 4 comments

I am facing the problem, that the following metric seems not to be able to get collected.

time="2024-03-25T19:36:04+01:00" level=warning msg="can not collect metrics: GetTotalPacketsReceived: Unauthorized (401)"
time="2024-03-25T19:36:04+01:00" level=warning msg="can not collect metrics: GetTotalPacketsSent: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:05+01:00" level=warning msg="can not collect metrics: GetCommonLinkProperties: SAOPFault: UPnPError 401 (invalid action)"
2
time="2024-03-25T19:36:06+01:00" level=warning msg="can not collect metrics: GetCommonLinkProperties: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:08+01:00" level=warning msg="can not collect metrics: GetInfo: SAOPFault: UPnPError 401 (invalid action)"
2
time="2024-03-25T19:36:09+01:00" level=warning msg="can not collect metrics: GetInfo: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:10+01:00" level=warning msg="can not collect metrics: GetInfo: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:11+01:00" level=warning msg="can not collect metrics: GetTotalAssociations: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:12+01:00" level=warning msg="can not collect metrics: GetTotalAssociations: SAOPFault: UPnPError 401 (invalid action)"
2
time="2024-03-25T19:36:13+01:00" level=warning msg="can not collect metrics: GetInfo: SAOPFault: UPnPError 401 (invalid action)"
2
time="2024-03-25T19:36:14+01:00" level=warning msg="can not collect metrics: GetInfo: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:15+01:00" level=warning msg="can not collect metrics: GetStatistics: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:16+01:00" level=warning msg="can not collect metrics: GetStatistics: SAOPFault: UPnPError 401 (invalid action)"
time="2024-03-25T19:36:17+01:00" level=warning msg="Error getting provider action GetNumberOfDectEntries result for urn:dslforum-org:service:X_AVM-DE_Dect:1.GetGenericDectEntry: GetNumberOfDectEntries: SAOPFault: UPnPError 401 (invalid action)"

Some of the metrics can be collected without an issue
Did someone else face the same? I am not sure if my FritzBox does not support it, or whats the exact issue.

Fritzbox: 6660 cable

A Fritzbox Cable doesn't have a PPP device, it uses DHCP on it's WAN interface. Please make sure to use the correct metrics file.

Wait: did you edit the log above? My notification email contains hints to PPP, the log above doesn't do so anymore.

Yes, edit was:
The errors are happening at the following services:

  • {
    "service": "urn:dslforum-org:service:WANPPPConnection:1",
    "action": "GetInfo",
    "result": "ConnectionStatus",
    ...}
  • {
    "service": "urn:dslforum-org:service:WANPPPConnection:1",
    "action": "GetInfo",
    "result": "Uptime",
    ...}
  • {
    "service": "urn:dslforum-org:service:WANPPPConnection:1",
    "action": "GetInfo",
    "result": "UpstreamMaxBitRate",
    ...}
  • {
    "service": "urn:dslforum-org:service:WANPPPConnection:1",
    "action": "GetInfo",
    "result": "DownstreamMaxBitRate",
    ...}

Then I switched it to the error log output.

As stated before a Fritzbox Cable does not have a PPP device. So when you still try to query those services these errors would be expected. Make sure to use a metrics file tailored to a Fritzbox Cable. You can find examples directly in the root of this repo.