summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm3
-rw-r--r--lib/Smokeping/probes/RemoteFPing.pm2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 8afa5ee..854da15 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1381,7 +1381,8 @@ DOC
delete $grammar->{_mandatory};
# the parent section doesn't define a valid probe anymore
delete $knownprobes{$name}
- if $knownprobes{$name} eq '_template';
+ if exists $knownprobes{$name}
+ and $knownprobes{$name} eq '_template';
# this also keeps track of the real module name for each subprobe,
# should we ever need it
$knownprobes{$subprobename} = $name;
diff --git a/lib/Smokeping/probes/RemoteFPing.pm b/lib/Smokeping/probes/RemoteFPing.pm
index c23591e..10df472 100644
--- a/lib/Smokeping/probes/RemoteFPing.pm
+++ b/lib/Smokeping/probes/RemoteFPing.pm
@@ -82,7 +82,7 @@ sub probevars {
my $h = $class->SUPER::probevars;
$h->{rbinary} = $h->{binary};
delete $h->{binary};
- delete $h->{rbinary}{sub}; # we can't check the remote program's -x bit
+ delete $h->{rbinary}{_sub}; # we can't check the remote program's -x bit
@{$h->{_mandatory}} = map { $_ ne 'binary' ? $_ : 'rbinary' } @{$h->{_mandatory}};
return $class->_makevars($h, {
_mandatory => [ 'binary', 'rhost' ],