Bugfix DNS1+2
This commit is contained in:
Florian Asche 2014-03-22 15:49:15 +01:00
parent 0d65611446
commit f4caa168de
2 changed files with 7 additions and 7 deletions

View File

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

View File

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