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();