summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-02-14 13:35:55 +0100
committerTobi Oetiker <tobi@oetiker.ch>2008-02-14 13:35:55 +0100
commit0db9048eb16ac58d9298fea62830a0ac1c4a4ce8 (patch)
treede3f70681be786a3fd5ba8a732f3dda89ff4844a /lib
parentc3e144bdb68b7dbee7b1b6249453a1c61dc18497 (diff)
downloadsmokeping-0db9048eb16ac58d9298fea62830a0ac1c4a4ce8.tar.gz
smokeping-0db9048eb16ac58d9298fea62830a0ac1c4a4ce8.tar.xz
ignore master for alerts if nomasterpoll is set
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index e2d6a36..c88e942 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1856,7 +1856,10 @@ sub update_rrds($$$$$$) {
if ($prop eq 'host' and check_filter($cfg,$name) and $tree->{$prop} !~ m|^/|) { # skip multihost
my %slave_test;
my $slaveupdates;
- my @updates = ([ "", time, $probeobj->rrdupdate_string($tree) ]);
+ my @updates;
+ if ($tree->{nomasterpoll} eq 'no'){
+ @updates = ([ "", time, $probeobj->rrdupdate_string($tree) ]);
+ }
if ($tree->{slaves}){
%slave_test = ( map { $_,1 } split(/\s+/, $tree->{slaves}));
$slaveupdates = Smokeping::Master::get_slaveupdates($name);