summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@gmail.com>2015-08-31 16:11:29 -0400
committerMatt Woodson <mwoodson@gmail.com>2015-08-31 16:11:29 -0400
commite2846ae93872c1779e26810eafc0745453f0bb05 (patch)
tree85c6da0d8e2faee7003f4165c1cd39c0bd406c9d /roles
parentc22864a97062724a25b0a723b5e919a9e8a073c5 (diff)
parentf2a97b901b5adf6cb8a4875e0b296c5a0d509741 (diff)
downloadopenshift-e2846ae93872c1779e26810eafc0745453f0bb05.tar.gz
openshift-e2846ae93872c1779e26810eafc0745453f0bb05.tar.bz2
openshift-e2846ae93872c1779e26810eafc0745453f0bb05.tar.xz
openshift-e2846ae93872c1779e26810eafc0745453f0bb05.zip
Merge pull request #543 from mwoodson/triggers
added triggers
Diffstat (limited to 'roles')
-rw-r--r--roles/os_zabbix/vars/template_os_linux.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/os_zabbix/vars/template_os_linux.yml b/roles/os_zabbix/vars/template_os_linux.yml
index 9b56d20d4..7bc8ddc5d 100644
--- a/roles/os_zabbix/vars/template_os_linux.yml
+++ b/roles/os_zabbix/vars/template_os_linux.yml
@@ -156,3 +156,28 @@ g_template_os_linux:
applications:
- Disk
value_type: float
+
+ ztriggers:
+ - description: 'Filesystem: / has less than 10% free on {HOST.NAME}'
+ expression: '{Template OS Linux:filesys.full.xvda2.last()}>90'
+ priority: warn
+
+ - description: 'Filesystem: / has less than 5% free on {HOST.NAME}'
+ expression: '{Template OS Linux:filesys.full.xvda2.last()}>95'
+ priority: high
+
+ - description: 'Filesystem: /var has less than 10% free on {HOST.NAME}'
+ expression: '{Template OS Linux:filesys.full.xvda3.last()}>90'
+ priority: warn
+
+ - description: 'Filesystem: /var has less than 5% free on {HOST.NAME}'
+ expression: '{Template OS Linux:filesys.full.xvda3.last()}>95'
+ priority: high
+
+ - description: 'Too many TOTAL processes on {HOST.NAME}'
+ expression: '{Template OS Linux:proc.nprocs.last()}>5000'
+ priority: warn
+
+ - description: 'Lack of available memory on {HOST.NAME}'
+ expression: '{Template OS Linux:mem.freemem.last()}<3000'
+ priority: warn