From 4a2ee52a92ce7a2f4f62ff039bddeaaa7080309c Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 19 Mar 2008 21:40:22 +0000 Subject: added nikos fixes for nomasterpoll --- lib/Smokeping.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 62021e2..1e90636 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -416,7 +416,7 @@ sub add_targets ($$$$){ if (ref $tree->{$prop} eq 'HASH'){ add_targets $cfg, $probes, $tree->{$prop}, "$name/$prop"; } - if ($prop eq 'host' and ( not $tree->{nomasterpoll} or $tree->{nomasterpoll} eq 'no') and check_filter($cfg,$name) and $tree->{$prop} !~ m|^/| ) { + if ($prop eq 'host' and ( check_filter($cfg,$name) and $tree->{$prop} !~ m|^/| )) { if($tree->{host} =~ /^DYNAMIC/) { $probeobj->add($tree,$name); } else { @@ -2055,8 +2055,8 @@ DOC nomasterpoll=> { _doc => < '(yes|no)', - _re_error => 'Only set this if you want to hide', _default => 'no', }, -- cgit v1.2.3-24-g4f1b