X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=policy.py;h=7ce85db590acbb6f9db7eb2d7df113d7fa4cd169;hb=17b11b54e2c212d5b3a8f8a15f49284abd91b50e;hp=43b37cad5a8d1f53e5ef797a2d3db0b027b6c2b4;hpb=6a452e8ece2ca8a47105c128eaebc38507bc76c5;p=monitor.git diff --git a/policy.py b/policy.py index 43b37ca..7ce85db 100755 --- a/policy.py +++ b/policy.py @@ -67,6 +67,8 @@ def main(hostnames, sitenames): changed_lessthan(nodehist.last_changed, 1.0) and \ found_within(recent_actions, 'down_notice', 7.0) and \ not found_within(recent_actions, 'online_notice', 0.5): + # NOTE: chronicly flapping nodes will not get 'online' notices + # since, they are never up long enough to be 'good'. # NOTE: searching for down_notice proves that the node has # gone through a 'down' state first, rather than just # flapping through: good, offline, online, ...