From b3a821582cc383947831954f9c562f8e8dddffd8 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Sat, 14 Apr 2007 18:11:52 +0000 Subject: r1047@rispa: niko | 2007-04-14 12:15:40 +0300 don't test for the plugin, since the user may have overridden it --- lib/Smokeping/probes/EchoPingDNS.pm | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/Smokeping') diff --git a/lib/Smokeping/probes/EchoPingDNS.pm b/lib/Smokeping/probes/EchoPingDNS.pm index f710988..dc08d50 100644 --- a/lib/Smokeping/probes/EchoPingDNS.pm +++ b/lib/Smokeping/probes/EchoPingDNS.pm @@ -53,17 +53,6 @@ sub plugin_args { return @args; } -sub test_usage { - my $self = shift; - my $bin = $self->{properties}{binary}; - # side effect: this sleeps for a random time between 0 and 1 seconds - # is there anything smarter to do? - croak("Your echoping binary doesn't support the dns plugin") - if `$bin -m dns 127.0.0.1 2>&1` =~ /(not compiled|invalid option|usage)/i; - $self->SUPER::test_usage; - return; -} - sub ProbeDesc($) { return "DNS pings using the echoping_dns plugin"; } -- cgit v1.2.3-24-g4f1b