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