mcktr / check_fritz

Check plugin written in Go to monitor a Fritz!Box
GNU General Public License v2.0
32 stars 10 forks source link

Wrong value for max upstream/downstream #96

Closed mcktr closed 4 years ago

mcktr commented 4 years ago

The following methods use values from the X_AVM-DE_GetOnlineMonitor action, these values does not contain the max link up-/downstream but the max measured up-/downstream.

_X_AVM-DEGetOnlineMonitor:

<?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:X_AVM-DE_GetOnlineMonitorResponse xmlns:u="urn:dslforum-org:service:WANCommonInterfaceConfig:1">
<NewTotalNumberSyncGroups>1</NewTotalNumberSyncGroups>
<NewSyncGroupName>sync_dsl</NewSyncGroupName>
<NewSyncGroupMode>VDSL</NewSyncGroupMode>
<Newmax_ds>14263750</Newmax_ds>
<Newmax_us>4369625</Newmax_us>
<Newds_current_bps>318355,354445,466082,72462,367271,356612,319050,371373,324781,575806,439400,554,444307,12,388651,1181,380154,415292,318132,362875</Newds_current_bps>
<Newmc_current_bps>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Newmc_current_bps>
<Newus_current_bps>7303,11744,10270,2332,8847,9818,8671,10040,8214,13005,9518,860,13997,36,8787,491,9167,10795,6995,9456</Newus_current_bps>
<Newprio_realtime_bps>124,3317,26,149,704,1813,1549,1679,530,38,33,705,4355,7,42,148,651,887,0,1180</Newprio_realtime_bps>
<Newprio_high_bps>7076,7322,10124,1826,8109,7769,6873,8010,7295,12650,9459,15,9438,0,8320,31,8365,9247,6953,7946</Newprio_high_bps>
<Newprio_default_bps>103,1105,120,357,34,236,249,351,389,317,26,140,204,29,425,312,151,661,42,330</Newprio_default_bps>
<Newprio_low_bps>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Newprio_low_bps>
</u:X_AVM-DE_GetOnlineMonitorResponse>
</s:Body>
</s:Envelope>

Possible successor:

GetCommonLinkProperties

<?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:GetCommonLinkPropertiesResponse xmlns:u="urn:dslforum-org:service:WANCommonInterfaceConfig:1">
<NewWANAccessType>DSL</NewWANAccessType>
<NewLayer1UpstreamMaxBitRate>35782000</NewLayer1UpstreamMaxBitRate>
<NewLayer1DownstreamMaxBitRate>126287000</NewLayer1DownstreamMaxBitRate>
<NewPhysicalLinkStatus>Up</NewPhysicalLinkStatus>
</u:GetCommonLinkPropertiesResponse>
</s:Body>
</s:Envelope>

https://github.com/mcktr/check_fritz/pull/83#issuecomment-698557978

refs #83