Merge pull request #104 from ppetit/policies
For sake of consistency with availability_of_members
diff --git a/heka/meta/heka.yml b/heka/meta/heka.yml
index 4a92245..90ffb67 100644
--- a/heka/meta/heka.yml
+++ b/heka/meta/heka.yml
@@ -332,18 +332,22 @@
trigger:
logical_operator: or
rules:
- - function: percent
- arguments: [ down ]
+ - function: count
+ arguments: [ okay ]
relational_operator: '=='
- threshold: 100
+ threshold: 0
- status: critical
trigger:
- logical_operator: or
+ logical_operator: and
rules:
- - function: percent
+ - function: count
+ arguments: [ okay ]
+ relational_operator: '=='
+ threshold: 1
+ - function: count
arguments: [ critical, down, unknown ]
- relational_operator: '>='
- threshold: 50
+ relational_operator: '>'
+ threshold: 0
- status: warning
trigger:
logical_operator: or