From f4caa168de7d589aee87026d06401ef6cf24a742 Mon Sep 17 00:00:00 2001 From: Florian Asche Date: Sat, 22 Mar 2014 15:49:15 +0100 Subject: [PATCH] Refs #5396 Bugfix DNS1+2 --- hardware/routers/fritzbox/mode/dns1.pm | 6 +++--- hardware/routers/fritzbox/mode/dns2.pm | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hardware/routers/fritzbox/mode/dns1.pm b/hardware/routers/fritzbox/mode/dns1.pm index d4cfc3ff2..3df4f7056 100644 --- a/hardware/routers/fritzbox/mode/dns1.pm +++ b/hardware/routers/fritzbox/mode/dns1.pm @@ -73,8 +73,8 @@ sub run { my ($self, %options) = @_; my $exit_code; - $self->{pfad} = '/upnp/control/WANIPConn1'; - $self->{uri} = 'urn:schemas-upnp-org:service:WANIPConnection:1'; + $self->{pfad} = '/upnp/control/WANCommonIFC1'; + $self->{uri} = 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'; $self->{space} = 'GetAddonInfos'; $self->{section} = 'NewDNSServer1'; my $IP = hardware::routers::fritzbox::mode::libgetdata::getdata($self); @@ -88,7 +88,7 @@ sub run { $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("Your current IP-Address is " . $IP)); + short_msg => sprintf("Your current DNS-Server is " . $IP)); $self->{output}->display(); $self->{output}->exit(); diff --git a/hardware/routers/fritzbox/mode/dns2.pm b/hardware/routers/fritzbox/mode/dns2.pm index 07e83bc04..bc0e47029 100644 --- a/hardware/routers/fritzbox/mode/dns2.pm +++ b/hardware/routers/fritzbox/mode/dns2.pm @@ -33,7 +33,7 @@ # #################################################################################### -package hardware::routers::fritzbox::mode::dns1; +package hardware::routers::fritzbox::mode::dns2; use base qw(centreon::plugins::mode); @@ -73,8 +73,8 @@ sub run { my ($self, %options) = @_; my $exit_code; - $self->{pfad} = '/upnp/control/WANIPConn1'; - $self->{uri} = 'urn:schemas-upnp-org:service:WANIPConnection:1'; + $self->{pfad} = '/upnp/control/WANCommonIFC1'; + $self->{uri} = 'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1'; $self->{space} = 'GetAddonInfos'; $self->{section} = 'NewDNSServer2'; my $IP = hardware::routers::fritzbox::mode::libgetdata::getdata($self); @@ -88,7 +88,7 @@ sub run { $self->{output}->output_add(severity => $exit_code, - short_msg => sprintf("Your current IP-Address is " . $IP)); + short_msg => sprintf("Your current DNS-Server is " . $IP)); $self->{output}->display(); $self->{output}->exit();