Pārlūkot izejas kodu

added triggers for disk space

Matt Woodson 9 gadi atpakaļ
vecāks
revīzija
3f6b8e5ada
1 mainītis faili ar 17 papildinājumiem un 0 dzēšanām
  1. 17 0
      roles/os_zabbix/vars/template_os_linux.yml

+ 17 - 0
roles/os_zabbix/vars/template_os_linux.yml

@@ -156,3 +156,20 @@ 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