diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-02-14 13:35:55 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-02-14 13:35:55 +0100 |
commit | 0db9048eb16ac58d9298fea62830a0ac1c4a4ce8 (patch) | |
tree | de3f70681be786a3fd5ba8a732f3dda89ff4844a /lib | |
parent | c3e144bdb68b7dbee7b1b6249453a1c61dc18497 (diff) | |
download | smokeping-0db9048eb16ac58d9298fea62830a0ac1c4a4ce8.tar.gz smokeping-0db9048eb16ac58d9298fea62830a0ac1c4a4ce8.tar.xz |
ignore master for alerts if nomasterpoll is set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 5 |
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); |