summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-02-17 14:20:41 +0100
committerNiko Tyni <ntyni@iki.fi>2005-02-17 14:20:41 +0100
commit634fe0bf599454c203fd64e9f634e8a3d3abf1c5 (patch)
tree5e6c1636c9d5971a3ba7cd6a0fbdc59890273b0f /lib
parent09df26f453b88aafaddf53c08c740d32e1342336 (diff)
downloadsmokeping-634fe0bf599454c203fd64e9f634e8a3d3abf1c5.tar.gz
smokeping-634fe0bf599454c203fd64e9f634e8a3d3abf1c5.tar.xz
Tiny bugfixes.
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' ],