Browse Source

Merge pull request #1054 from twiest/pr

added 'Template Zagg Server'
Thomas Wiest 9 years ago
parent
commit
4322b19c05
2 changed files with 49 additions and 0 deletions
  1. 13 0
      roles/os_zabbix/tasks/main.yml
  2. 36 0
      roles/os_zabbix/vars/template_zagg_server.yml

+ 13 - 0
roles/os_zabbix/tasks/main.yml

@@ -37,6 +37,9 @@
 - include_vars: template_aws.yml
   tags:
   - aws
+- include_vars: template_zagg_server.yml
+  tags:
+  - zagg_server
 
 - name: Include Template Heartbeat
   include: ../../lib_zabbix/tasks/create_template.yml
@@ -137,3 +140,13 @@
     password: "{{ ozb_password }}"
   tags:
   - aws
+
+- name: Include Template Zagg Server
+  include: ../../lib_zabbix/tasks/create_template.yml
+  vars:
+    template: "{{ g_template_zagg_server }}"
+    server: "{{ ozb_server }}"
+    user: "{{ ozb_user }}"
+    password: "{{ ozb_password }}"
+  tags:
+  - zagg_server

+ 36 - 0
roles/os_zabbix/vars/template_zagg_server.yml

@@ -0,0 +1,36 @@
+---
+g_template_zagg_server:
+  name: Template Zagg Server
+  zitems:
+  - key: zagg.server.metrics.count
+    applications:
+    - Zagg Server
+    value_type: int
+
+  - key: zagg.server.processor.errors
+    applications:
+    - Zagg Server
+    value_type: int
+
+  - key: zagg.server.heartbeat.count
+    applications:
+    - Zagg Server
+    value_type: int
+
+  ztriggers:
+  - name: 'Error sending metrics on {HOST.NAME}'
+    expression: '{Template Zagg Server:zagg.server.processor.errors.min(#3)}>0'
+    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/zagg_server.asciidoc'
+    priority: average
+
+  - name: 'Critically High number of metrics in Zagg queue {HOST.NAME}'
+    expression: '{Template Zagg Server:zagg.server.metrics.count.min(#3)}>10000'
+    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/zagg_server.asciidoc'
+    priority: high
+
+  - name: 'High number of metrics in Zagg queue {HOST.NAME}'
+    expression: '{Template Zagg Server:zagg.server.metrics.count.min(#3)}>5000'
+    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/zagg_server.asciidoc'
+    dependencies:
+    - 'Critically High number of metrics in Zagg queue {HOST.NAME}'
+    priority: average