added trigger test template
This commit is contained in:
@@ -0,0 +1,39 @@
|
|||||||
|
zabbix_export:
|
||||||
|
version: '7.0'
|
||||||
|
template_groups:
|
||||||
|
- uuid: cd6848345eb04289b2d5260c10e0d269
|
||||||
|
name: devloop
|
||||||
|
templates:
|
||||||
|
- uuid: d9f7fbdabce94730b3ef17b6f531419c
|
||||||
|
template: 'Trigger Test via File'
|
||||||
|
name: 'Trigger Test via File'
|
||||||
|
description: |
|
||||||
|
Triggers an Alert if file, given by TRIGGER_TEST_FILE macro, exists.
|
||||||
|
|
||||||
|
This is useful to test your (external) alerting system by just creating a file.
|
||||||
|
|
||||||
|
... or wakeup the admins during night ...
|
||||||
|
vendor:
|
||||||
|
name: devloop
|
||||||
|
version: '1.0'
|
||||||
|
groups:
|
||||||
|
- name: devloop
|
||||||
|
items:
|
||||||
|
- uuid: 20bd4f01822c48409e72b2ee1cd9df23
|
||||||
|
name: 'Trigger Test File'
|
||||||
|
key: 'vfs.file.exists[{$TRIGGER_TEST_FILE}]'
|
||||||
|
delay: 30s
|
||||||
|
history: 1d
|
||||||
|
trends: 1d
|
||||||
|
triggers:
|
||||||
|
- uuid: 208b46957c3e46c1833de7973b0788f3
|
||||||
|
expression: 'last(/Trigger Test via File/vfs.file.exists[{$TRIGGER_TEST_FILE}])=1'
|
||||||
|
name: 'DRILL - Trigger File'
|
||||||
|
priority: HIGH
|
||||||
|
description: Testalarm
|
||||||
|
manual_close: 'YES'
|
||||||
|
macros:
|
||||||
|
- macro: '{$TRIGGER_TEST_FILE}'
|
||||||
|
value: '/tmp/trigger_test'
|
||||||
|
description: 'File which must exist to trigger. Be aware: everyone as permissions to create files in /tmp'
|
||||||
|
|
||||||
Reference in New Issue
Block a user