1
package probes::EchoPingIcp;
5
probes::EchoPingIcp - an echoping(1) probe for SmokePing
9
Measures ICP (Internet Cache Protocol, spoken by web caches)
10
roundtrip times for SmokePing.
17
binary = /usr/bin/echoping # mandatory
24
# this can be overridden in the targets' PROBE_CONF sections
30
Supported probe-specific variables: those specified in EchoPing(3pm)
33
Supported target-specific variables:
37
=item those specified in EchoPing(3pm) documentation
39
except I<fill>, I<size> and I<udp>.
43
The URL to be requested from the web cache.
49
Niko Tyni E<lt>ntyni@iki.fiE<gt>
53
EchoPing(3pm), EchoPingHttp(3pm)
58
use base qw(probes::EchoPing);
63
# Icp doesn't fit with filling or size
64
my $arghashref = $self->features;
65
delete $arghashref->{size};
66
delete $arghashref->{fill};
72
my $url = $target->{vars}{url};
73
$url = $self->{properties}{url} unless defined $url;
74
$url = "/" unless defined $url;
76
my @args = ("-i", $url);
83
my $bin = $self->{properties}{binary};
84
croak("Your echoping binary doesn't support ICP")
85
if `$bin -i/ foo 2>&1` =~ /not compiled|usage/i;
86
$self->SUPER::test_usage;
91
return "ICP pings using echoping(1)";