summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/vars
diff options
context:
space:
mode:
authorWesley Hearn <wesley.s.hearn@gmail.com>2015-08-27 11:11:55 -0400
committerWesley Hearn <wesley.s.hearn@gmail.com>2015-08-27 11:11:55 -0400
commitd228350e4b9cc6b5341985940f12a50ec2847768 (patch)
tree3ce6d484fadbfc9eb04e2f94a22d7159619277ab /roles/os_zabbix/vars
parent4e76087deabab452c97c2b17739403c10b6a0026 (diff)
parent3012985b20e44c0ca4f7cce5a70926f518ec19c5 (diff)
downloadopenshift-d228350e4b9cc6b5341985940f12a50ec2847768.tar.gz
openshift-d228350e4b9cc6b5341985940f12a50ec2847768.tar.bz2
openshift-d228350e4b9cc6b5341985940f12a50ec2847768.tar.xz
openshift-d228350e4b9cc6b5341985940f12a50ec2847768.zip
Merge pull request #513 from kwoodson/zbxupdates
Zabbix API updates
Diffstat (limited to 'roles/os_zabbix/vars')
-rw-r--r--roles/os_zabbix/vars/main.yml1
-rw-r--r--roles/os_zabbix/vars/template_heartbeat.yml13
-rw-r--r--roles/os_zabbix/vars/template_host.yml27
-rw-r--r--roles/os_zabbix/vars/template_master.yml27
-rw-r--r--roles/os_zabbix/vars/template_node.yml27
-rw-r--r--roles/os_zabbix/vars/template_os_linux.yml143
-rw-r--r--roles/os_zabbix/vars/template_router.yml27
7 files changed, 265 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/main.yml b/roles/os_zabbix/vars/main.yml
new file mode 100644
index 000000000..ed97d539c
--- /dev/null
+++ b/roles/os_zabbix/vars/main.yml
@@ -0,0 +1 @@
+---
diff --git a/roles/os_zabbix/vars/template_heartbeat.yml b/roles/os_zabbix/vars/template_heartbeat.yml
new file mode 100644
index 000000000..158d6c79a
--- /dev/null
+++ b/roles/os_zabbix/vars/template_heartbeat.yml
@@ -0,0 +1,13 @@
+---
+g_template_heartbeat:
+ name: Template Heartbeat
+ zapplications:
+ - Heartbeat
+ zitems:
+ - name: Heartbeat Ping
+ application: Heartbeat
+ key: heartbeat.ping
+ ztriggers:
+ - description: 'Heartbeat.ping has failed on {HOST.NAME}'
+ expression: '{Template Heartbeat:heartbeat.ping.last()}<>0'
+ priority: avg
diff --git a/roles/os_zabbix/vars/template_host.yml b/roles/os_zabbix/vars/template_host.yml
new file mode 100644
index 000000000..e7cc667cb
--- /dev/null
+++ b/roles/os_zabbix/vars/template_host.yml
@@ -0,0 +1,27 @@
+---
+g_template_host:
+ params:
+ name: Template Host
+ host: Template Host
+ groups:
+ - groupid: 1 # FIXME (not real)
+ output: extend
+ search:
+ name: Template Host
+ zitems:
+ - name: Host Ping
+ hostid:
+ key_: host.ping
+ type: 2
+ value_type: 0
+ output: extend
+ search:
+ key_: host.ping
+ ztriggers:
+ - description: 'Host ping has failed on {HOST.NAME}'
+ expression: '{Template Host:host.ping.last()}<>0'
+ priority: 3
+ searchWildcardsEnabled: True
+ search:
+ description: 'Host ping has failed on*'
+ expandExpression: True
diff --git a/roles/os_zabbix/vars/template_master.yml b/roles/os_zabbix/vars/template_master.yml
new file mode 100644
index 000000000..5f9b41a4f
--- /dev/null
+++ b/roles/os_zabbix/vars/template_master.yml
@@ -0,0 +1,27 @@
+---
+g_template_master:
+ params:
+ name: Template Master
+ host: Template Master
+ groups:
+ - groupid: 1 # FIXME (not real)
+ output: extend
+ search:
+ name: Template Master
+ zitems:
+ - name: Master Etcd Ping
+ hostid:
+ key_: master.etcd.ping
+ type: 2
+ value_type: 0
+ output: extend
+ search:
+ key_: master.etcd.ping
+ ztriggers:
+ - description: 'Master Etcd ping has failed on {HOST.NAME}'
+ expression: '{Template Master:master.etcd.ping.last()}<>0'
+ priority: 3
+ searchWildcardsEnabled: True
+ search:
+ description: 'Master Etcd ping has failed on*'
+ expandExpression: True
diff --git a/roles/os_zabbix/vars/template_node.yml b/roles/os_zabbix/vars/template_node.yml
new file mode 100644
index 000000000..98c343a24
--- /dev/null
+++ b/roles/os_zabbix/vars/template_node.yml
@@ -0,0 +1,27 @@
+---
+g_template_node:
+ params:
+ name: Template Node
+ host: Template Node
+ groups:
+ - groupid: 1 # FIXME (not real)
+ output: extend
+ search:
+ name: Template Node
+ zitems:
+ - name: Kubelet Ping
+ hostid:
+ key_: kubelet.ping
+ type: 2
+ value_type: 0
+ output: extend
+ search:
+ key_: kubelet.ping
+ ztriggers:
+ - description: 'Kubelet ping has failed on {HOST.NAME}'
+ expression: '{Template Node:kubelet.ping.last()}<>0'
+ priority: 3
+ searchWildcardsEnabled: True
+ search:
+ description: 'Kubelet ping has failed on*'
+ expandExpression: True
diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml
new file mode 100644
index 000000000..1cc928bce
--- /dev/null
+++ b/roles/os_zabbix/vars/template_os_linux.yml
@@ -0,0 +1,143 @@
+---
+g_template_os_linux:
+ name: Template OS Linux
+ zapplications:
+ - Disk
+ - Memory
+ - Kernel
+ zitems:
+ - key: kernel.uname.sysname
+ application: Kernel
+ value_type: string
+
+ - key: kernel.all.cpu.wait.total
+ application: Kernel
+ value_type: int
+
+ - key: kernel.all.cpu.irq.hard
+ application: Kernel
+ value_type: int
+
+ - key: kernel.all.cpu.idle
+ application: Kernel
+ value_type: int
+
+ - key: kernel.uname.distro
+ application: Kernel
+ value_type: string
+
+ - key: kernel.uname.nodename
+ application: Kernel
+ value_type: string
+
+ - key: kernel.all.cpu.irq.soft
+ application: Kernel
+ value_type: int
+
+ - key: kernel.all.load.15_minute
+ application: Kernel
+ value_type: float
+
+ - key: kernel.all.cpu.sys
+ application: Kernel
+ value_type: int
+
+ - key: kernel.all.load.5_minute
+ application: Kernel
+ value_type: float
+
+ - key: mem.freemem
+ application: Memory
+ value_type: int
+
+ - key: kernel.all.cpu.nice
+ application: Kernel
+ value_type: int
+
+ - key: mem.util.bufmem
+ application: Memory
+ value_type: int
+
+ - key: swap.used
+ application: Memory
+ value_type: int
+
+ - key: kernel.all.load.1_minute
+ application: Kernel
+ value_type: float
+
+ - key: kernel.uname.version
+ application: Kernel
+ value_type: string
+
+ - key: swap.length
+ application: Memory
+ value_type: int
+
+ - key: mem.physmem
+ application: Memory
+ value_type: int
+
+ - key: kernel.all.uptime
+ application: Kernel
+ value_type: int
+
+ - key: swap.free
+ application: Memory
+ value_type: int
+
+ - key: mem.util.used
+ application: Memory
+ value_type: int
+
+ - key: kernel.all.cpu.user
+ application: Kernel
+ value_type: int
+
+ - key: kernel.uname.machine
+ application: Kernel
+ value_type: string
+
+ - key: hinv.ncpu
+ application: Kernel
+ value_type: int
+
+ - key: mem.util.cached
+ application: Memory
+ value_type: int
+
+ - key: kernel.all.cpu.steal
+ application: Kernel
+ value_type: int
+
+ - key: kernel.all.pswitch
+ application: Kernel
+ value_type: int
+
+ - key: kernel.uname.release
+ application: Kernel
+ value_type: string
+
+ - key: proc.nprocs
+ application: Kernel
+ value_type: int
+
+ - key: filesys.avail
+ application: Disk
+ value_type: int
+
+ - key: filesys.capacity
+ application: Disk
+ value_type: int
+
+ - key: filesys.free
+ application: Disk
+ value_type: int
+
+ - key: filesys.full
+ application: Disk
+ value_type: float
+
+ - key: filesys.used
+ application: Disk
+ value_type: float
diff --git a/roles/os_zabbix/vars/template_router.yml b/roles/os_zabbix/vars/template_router.yml
new file mode 100644
index 000000000..4dae7da1e
--- /dev/null
+++ b/roles/os_zabbix/vars/template_router.yml
@@ -0,0 +1,27 @@
+---
+g_template_router:
+ params:
+ name: Template Router
+ host: Template Router
+ groups:
+ - groupid: 1 # FIXME (not real)
+ output: extend
+ search:
+ name: Template Router
+ zitems:
+ - name: Router Backends down
+ hostid:
+ key_: router.backends.down
+ type: 2
+ value_type: 0
+ output: extend
+ search:
+ key_: router.backends.down
+ ztriggers:
+ - description: 'Number of router backends down on {HOST.NAME}'
+ expression: '{Template Router:router.backends.down.last()}<>0'
+ priority: 3
+ searchWildcardsEnabled: True
+ search:
+ description: 'Number of router backends down on {HOST.NAME}'
+ expandExpression: True