Closed Apfelwurm closed 11 months ago
Seems like fritzconnection can also return InvalidArgumentError when calling a function, which has no arguments. While this maybe unexpected I havechecked the code of fritzcopnnection and this may have been updated/introduced some time last year and I have updated the version of fritzconnection used in the code several times.
I have now aded the FritzArgumentError to the list of exceptions, which disables a command for a device, which in turn should make the exporter work for your setup.
I'll release an update shortly.
NB: I had a look at the X_VoIP1 TR-064 service on my box and this does not return any metrics which would be useful in a prometheus context. The command under that service only return static configuration information (like configured numbers, configured clients, area codes etc.) but no metrics like e.g. "number of calls" etc.
As such I am not going to put any of these into the prometheus metrics. The best I could see is "X_VoIP1 X_AVM-DE_GetVoIPStatus" but as I do not have VoIP accounts on my box this is difficult to say. At best this should deliver "true/false" information on the online status.
If you think this may be worthwhile, could you please open another issue, and provide some example output using the export_helper tool for the metrics you would like to see.
kind regards, Patrick
Hey there,
when using a FRITZ!Box Fon WLAN 7270 v3 i get the following error:
it happens right after
so i could narrow down that commenting out the
WanPPPConnectionStatus
class "fixes" the breaking of the exporter at least.The output of
fritzconnection -i fb-7270-01..local -s
The output of
fritzconnection -i fb-7270-01..local -S WANPPPConnection1
The output of
fritzconnection -i fb-7270-01..local -A WANPPPConnection1 GetStatusInfo
Running your helper script:
Sadly i did not really understand how to test further from here to maybe help including support for the broken WanPPPConnectionStatus or add X_VoIP1 for example.
Maybe you can use this info to build in some adjustments :) Let me know if i can provide you somehow with additional Information.