summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Smokeping/probes/EchoPingDNS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Smokeping/probes/EchoPingDNS.pm b/lib/Smokeping/probes/EchoPingDNS.pm
index dc22f17..f710988 100644
--- a/lib/Smokeping/probes/EchoPingDNS.pm
+++ b/lib/Smokeping/probes/EchoPingDNS.pm
@@ -74,7 +74,9 @@ sub targetvars {
delete $h->{udp};
delete $h->{fill};
delete $h->{size};
- $h->{plugin}{default} = 'dns';
+ $h->{_mandatory} = [ grep { $_ ne "plugin" } @{$h->{_mandatory}}];
+ $h->{plugin}{_default} = 'dns';
+ $h->{plugin}{_example} = '/path/to/dns.so';
return $class->_makevars($h, {
_mandatory => [ 'dns_request' ],
dns_request => {