[smokeping-users] Re: Problem after upgrade .. [FreeBSD?]
Tobias Oetiker
tobi at oetiker.ch
Tue Aug 29 19:10:27 MEST 2006
Hi B.,
> [~]$ 11 > echoping -h/ 127.0.0.1
> Usage: echoping [-v|--verbose] [-?|--help] [-s|--size INT] [-n|--number INT]
> [-w|--wait FLOAT] [-d|--discard] [-c|--chargen] [-h|--http STRING]
> [-i|--icp STRING] [-r|--ttcp] [-u|--udp] [-t|--timeout INT]
> [-f|--fill STRING] [-S|--smtp] [-C|--ssl] [-p|--priority INT]
> [-P|--type-of-service INT] [-a|--check-original]
> [-A|--ignore-cache]
> [-4|--ipv4] [-6|--ipv6] [-m|--module STRING]
> hostname [plugin-options...]
try this patch
Index: EchoPingHttps.pm
===================================================================
--- EchoPingHttps.pm (revision 658)
+++ EchoPingHttps.pm (working copy)
@@ -54,7 +54,7 @@
my $self = shift;
my $bin = $self->{properties}{binary};
- my $response = `$bin -C -h/ 127.0.0.1 2>&1`;
+ my $response = `$bin -C -h / 127.0.0.1 2>&1`;
croak("Your echoping binary doesn't support SSL")
if ($response =~ /(not compiled|invalid option|usage)/i);
$self->SUPER::test_usage;
Index: EchoPingHttp.pm
===================================================================
--- EchoPingHttp.pm (revision 658)
+++ EchoPingHttp.pm (working copy)
@@ -88,13 +88,13 @@
my $self = shift;
my $bin = $self->{properties}{binary};
croak("Your echoping binary doesn't support HTTP")
- if `$bin -h/ 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i;
- if (`$bin -a -h/ 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) {
+ if `$bin -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i;
+ if (`$bin -a -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) {
carp("Note: your echoping binary doesn't support revalidating (-a), disabling it");
$self->{_disabled}{a} = undef;
}
- if (`$bin -A -h/ 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) {
+ if (`$bin -A -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) {
carp("Note: your echoping binary doesn't support ignoring cache (-A), disabling it");
$self->{_disabled}{A} = undef;
}
cheers
tobi
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://tobi.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list