From 1e53de18a5cf8fe711f8c59cbe8b0f68cc0d1cbf Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 24 Mar 2014 19:36:26 +0100 Subject: [PATCH] Refs #5396 --- network/fritzbox/mode/traffic.pm | 8 ++++---- network/fritzbox/mode/upstatus.pm | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/network/fritzbox/mode/traffic.pm b/network/fritzbox/mode/traffic.pm index 682ddad87..a4ee34c51 100644 --- a/network/fritzbox/mode/traffic.pm +++ b/network/fritzbox/mode/traffic.pm @@ -103,12 +103,12 @@ sub run { network::fritzbox::mode::libgetdata::init($self, pfad => '/upnp/control/WANCommonIFC1', uri => 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'); network::fritzbox::mode::libgetdata::call($self, soap_method => 'GetAddonInfos'); - my $NewTotalBytesSent = network::fritzbox::mode::libgetdata::value($self, path => '/GetAddonInfosResponse/NewTotalBytesSent'); - my $NewTotalBytesReceived = network::fritzbox::mode::libgetdata::value($self, path => '/GetAddonInfosResponse/NewTotalBytesReceived'); + my $NewTotalBytesSent = network::fritzbox::mode::libgetdata::value($self, path => '//GetAddonInfosResponse/NewTotalBytesSent'); + my $NewTotalBytesReceived = network::fritzbox::mode::libgetdata::value($self, path => '//GetAddonInfosResponse/NewTotalBytesReceived'); network::fritzbox::mode::libgetdata::call($self, soap_method => 'GetCommonLinkProperties'); - my $NewLayer1UpstreamMaxBitRate = network::fritzbox::mode::libgetdata::value($self, path => '/GetCommonLinkPropertiesResponse/NewLayer1UpstreamMaxBitRate'); - my $NewLayer1DownstreamMaxBitRate = network::fritzbox::mode::libgetdata::value($self, path => '/GetCommonLinkPropertiesResponse/NewLayer1DownstreamMaxBitRate'); + my $NewLayer1UpstreamMaxBitRate = network::fritzbox::mode::libgetdata::value($self, path => '//GetCommonLinkPropertiesResponse/NewLayer1UpstreamMaxBitRate'); + my $NewLayer1DownstreamMaxBitRate = network::fritzbox::mode::libgetdata::value($self, path => '//GetCommonLinkPropertiesResponse/NewLayer1DownstreamMaxBitRate'); ### GET DATA END # DID U KNOW? diff --git a/network/fritzbox/mode/upstatus.pm b/network/fritzbox/mode/upstatus.pm index b917284bf..7241a8ff1 100644 --- a/network/fritzbox/mode/upstatus.pm +++ b/network/fritzbox/mode/upstatus.pm @@ -86,14 +86,14 @@ sub run { network::fritzbox::mode::libgetdata::init($self, pfad => '/upnp/control/WANCommonIFC1', uri => 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'); network::fritzbox::mode::libgetdata::call($self, soap_method => 'GetCommonLinkProperties'); - my $WANAccessType = network::fritzbox::mode::libgetdata::value($self, path => '/GetCommonLinkPropertiesResponse/NewWANAccessType'); - my $LinkStatus = network::fritzbox::mode::libgetdata::value($self, path => '/GetCommonLinkPropertiesResponse/NewPhysicalLinkStatus'); + my $WANAccessType = network::fritzbox::mode::libgetdata::value($self, path => '//GetCommonLinkPropertiesResponse/NewWANAccessType'); + my $LinkStatus = network::fritzbox::mode::libgetdata::value($self, path => '//GetCommonLinkPropertiesResponse/NewPhysicalLinkStatus'); network::fritzbox::mode::libgetdata::init($self, pfad => '/upnp/control/WANIPConn1', uri => 'urn:schemas-upnp-org:service:WANIPConnection:1'); network::fritzbox::mode::libgetdata::call($self, soap_method => 'GetStatusInfo'); - my $uptime = network::fritzbox::mode::libgetdata::value($self, path => '/GetStatusInfoResponse/NewUptime'); - my $ConnectionStatus = network::fritzbox::mode::libgetdata::value($self, path => '/GetStatusInfoResponse/NewConnectionStatus'); + my $uptime = network::fritzbox::mode::libgetdata::value($self, path => '//GetStatusInfoResponse/NewUptime'); + my $ConnectionStatus = network::fritzbox::mode::libgetdata::value($self, path => '//GetStatusInfoResponse/NewConnectionStatus'); $exit_code = $self->{perfdata}->threshold_check(value => floor($uptime), threshold => [ { label => 'critical', exit_litteral => 'critical' },