-
Notifications
You must be signed in to change notification settings - Fork 5.8k
feat(inputs.fritzbox): Add support for fiber lines #18740
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
Merged
skartikey
merged 10 commits into
influxdata:master
from
hdecarne:fritzbox-plugin-update
Apr 22, 2026
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
00f874e
feat(inputs.fritzbox): Add support for fiber lines
hdecarne 38fa09b
feat(inputs.fritzbox): Add support for fiber lines
hdecarne 2bd6484
feat(inputs.fritzbox): Add support for fiber lines
hdecarne f7c5ef1
Fix linter issuers
hdecarne b965dc0
Removed no longer needed TODO comment.
hdecarne 9b96cd8
Make fiber collect option opt-in.
hdecarne 8286c76
Merge branch 'master' into Resolve-merge-conflicts
hdecarne d28f7db
Make fiber collect option opt-in.
hdecarne f07575b
Merge branch 'master' into fritzbox-plugin-update
hdecarne 61196bb
Fix test assertion (fiber option is opt-in and not default)
hdecarne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| # "wan", | ||
| # "ppp", | ||
| # "dsl", | ||
| # "fiber", | ||
| # "wlan", | ||
| # ] | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| fritzbox_fiber,service=X_AVM_DE_WANFiber1,source=127.0.0.1 optical_signal_level=0i,lower_optical_threshold=0i,upper_optical_threshold=-5900i,transmit_optical_level=0i,lower_transmit_power_threshold=-500i,upper_transmit_power_threshold=0i,sfp_vendor="XXXX XXx",sfp_part_number="",sfp_serial_number="AB12345678901",sfp_type=0i,tx_wave_length=1310u,fiber_mode="Unknown",bytes_sent=664548698u,bytes_received=0u,packets_sent=1328165u,packets_received=0u,packet_errors_sent=0u,packet_errors_received=0u,packets_multicast=2944821u,connection_rate_down=0u,connection_rate_up=1250000u,best_train_state=0u,resyncs=0u,minutes_in_showtime=0u 1737088741855188000 |
4 changes: 4 additions & 0 deletions
4
plugins/inputs/fritzbox/testdata/testcases/fiber/mock/dummySCPD.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| <scpd xmlns="urn:dslforum-org:service-1-0"> | ||
| <actionList/> | ||
| <serviceStateTable/> | ||
| </scpd> |
13 changes: 13 additions & 0 deletions
13
plugins/inputs/fritzbox/testdata/testcases/fiber/mock/tr64desc.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <root xmlns="urn:dslforum-org:device-1-0"> | ||
| <device> | ||
| <serviceList> | ||
| <service> | ||
| <serviceType>urn:dslforum-org:service:X_AVM-DE_WANFiber:1</serviceType> | ||
| <serviceId>urn:X_AVM-DE_WANFiber-com:serviceId:X_AVM-DE_WANFiber1</serviceId> | ||
| <controlURL>/x_wanfiber</controlURL> | ||
| <SCPDURL>/dummySCPD.xml</SCPDURL> | ||
| </service> | ||
| </serviceList> | ||
| <deviceList/> | ||
| </device> | ||
| </root> |
33 changes: 33 additions & 0 deletions
33
plugins/inputs/fritzbox/testdata/testcases/fiber/mock/x_wanfiber/response.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0"?> | ||
| <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
| <s:Body> | ||
| <u:GetInfoResponse xmlns:u="urn:dslforum-org:service:X_AVM-DE_WANFiber:1"> | ||
| <NewOpticalSignalLevel>0</NewOpticalSignalLevel> | ||
| <NewLowerOpticalThreshold>0</NewLowerOpticalThreshold> | ||
| <NewUpperOpticalThreshold>-5900</NewUpperOpticalThreshold> | ||
| <NewTransmitOpticalLevel>0</NewTransmitOpticalLevel> | ||
| <NewLowerTransmitPowerThreshold>-500</NewLowerTransmitPowerThreshold> | ||
| <NewUpperTransmitPowerThreshold>0</NewUpperTransmitPowerThreshold> | ||
| <NewSFPVendor>XXXX XXx</NewSFPVendor> | ||
| <NewSFPPartNumber></NewSFPPartNumber> | ||
| <NewSFPSerialNumber>AB12345678901</NewSFPSerialNumber> | ||
| <NewSFPType>0</NewSFPType> | ||
| <NewTXWaveLength>1310</NewTXWaveLength> | ||
| <NewFiberMode>Unknown</NewFiberMode> | ||
| </u:GetInfoResponse> | ||
| <u:GetStatisticsResponse xmlns:u="urn:dslforum-org:service:X_AVM-DE_WANFiber:1"> | ||
| <NewBytesSent>664548698</NewBytesSent> | ||
| <NewBytesReceived>0</NewBytesReceived> | ||
| <NewPacketsSent>1328165</NewPacketsSent> | ||
| <NewPacketsReceived>0</NewPacketsReceived> | ||
| <NewPacketErrorsSent>0</NewPacketErrorsSent> | ||
| <NewPacketErrorsReceived>0</NewPacketErrorsReceived> | ||
| <NewPacketsMulticast>2944821</NewPacketsMulticast> | ||
| <NewConnectionRateDown>0</NewConnectionRateDown> | ||
| <NewConnectionRateUp>1250000</NewConnectionRateUp> | ||
| <NewBestTrainState>0</NewBestTrainState> | ||
| <NewResyncs>0</NewResyncs> | ||
| <NewMinutesInShowtime>0</NewMinutesInShowtime> | ||
| </u:GetStatisticsResponse> | ||
| </s:Body> | ||
| </s:Envelope> |
6 changes: 6 additions & 0 deletions
6
plugins/inputs/fritzbox/testdata/testcases/fiber/telegraf.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [[inputs.fritzbox]] | ||
| ## URLs are set dynamically by test | ||
| # urls = [ ] | ||
| collect = [ "fiber" ] | ||
| # everything else stays at defaults | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.