summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes/basefork.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping/probes/basefork.pm')
-rw-r--r--lib/Smokeping/probes/basefork.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Smokeping/probes/basefork.pm b/lib/Smokeping/probes/basefork.pm
index b7b5554..4f50467 100644
--- a/lib/Smokeping/probes/basefork.pm
+++ b/lib/Smokeping/probes/basefork.pm
@@ -125,6 +125,12 @@ sub targetvars {
return $class->_makevars($class->SUPER::targetvars, {
pings => {
_re => '\d+',
+ _sub => sub {
+ my $val = shift;
+ return "ERROR: The pings value must be at least 3."
+ if $val < 3;
+ return undef;
+ },
_example => 5,
_doc => <<DOC,
How many pings should be sent to each target, if different from the global