summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes/FPing6.pm
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-02-13 20:23:04 +0100
committerNiko Tyni <ntyni@iki.fi>2005-02-13 20:23:04 +0100
commit6d76521656e91daa160bc8019828f1b68d7aa5dc (patch)
treeaaa27615a0702942fa1606d9a5c89f0a3547467c /lib/Smokeping/probes/FPing6.pm
parent6dba1afbe4b475a7d34f5ef867b7b37291cd1484 (diff)
downloadsmokeping-6d76521656e91daa160bc8019828f1b68d7aa5dc.tar.gz
smokeping-6d76521656e91daa160bc8019828f1b68d7aa5dc.tar.xz
Moved probes, matchers and ciscoRttMonMIB modules to lib/Smokeping.
Diffstat (limited to 'lib/Smokeping/probes/FPing6.pm')
-rw-r--r--lib/Smokeping/probes/FPing6.pm58
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/FPing6.pm b/lib/Smokeping/probes/FPing6.pm
new file mode 100644
index 0000000..27e6a59
--- /dev/null
+++ b/lib/Smokeping/probes/FPing6.pm
@@ -0,0 +1,58 @@
+package Smokeping::probes::FPing6;
+
+=head1 301 Moved Permanently
+
+This is a Smokeping probe module. Please use the command
+
+C<smokeping -man Smokeping::probes::FPing6>
+
+to view the documentation or the command
+
+C<smokeping -makepod Smokeping::probes::FPing6>
+
+to generate the POD document.
+
+=cut
+
+use strict;
+use base qw(Smokeping::probes::FPing);
+
+sub pod_hash {
+ return {
+ name => <<DOC,
+Smokeping::probes::FPing6 - FPing6 Probe for SmokePing
+DOC
+ description => <<DOC,
+Integrates FPing6 as a probe into smokeping. This probe is derived from
+FPing; the only difference is that the target host used for checking
+the fping command output is ::1 instead of localhost.
+DOC
+ authors => <<'DOC',
+Tobias Oetiker <tobi@oetiker.ch>
+
+Niko Tyni <ntyni@iki.fi>
+DOC
+ see_also => <<DOC
+Smokeping::probes::FPing
+DOC
+ }
+}
+
+sub testhost {
+ return "::1";
+}
+
+sub probevars {
+ my $self = shift;
+ my $h = $self->SUPER::probevars;
+ $h->{binary}{_example} = "/usr/bin/fping6";
+ return $h;
+}
+
+sub ProbeDesc($){
+ my $self = shift;
+ my $bytes = $self->{properties}{packetsize}||56;
+ return "IPv6-ICMP Echo Pings ($bytes Bytes)";
+}
+
+1;