Update zabbix_trigger.yml

This commit is contained in:
donotos
2021-09-06 11:18:18 +02:00
parent 5c00f9c3cc
commit 9f01375746

View File

@@ -1,21 +1,26 @@
- name: Deploy trigger action ---
community.zabbix.zabbix_action: - name: Git pull
server_url: "http://172.16.2.8/" hosts: all
login_user: donotos
login_password: .A3eiljkj tasks:
name: "Send alerts to Admin" - name: Deploy trigger action
event_source: 'trigger' community.zabbix.zabbix_action:
state: present server_url: "http://172.16.2.8/"
status: enabled login_user: donotos
esc_period: 60 login_password: .A3eiljkj
conditions: name: "Send alerts to Admin"
- type: 'trigger_severity' event_source: 'trigger'
operator: '>=' state: present
value: 'Information' status: enabled
operations: esc_period: 60
- type: send_message conditions:
subject: "Something bad is happening" - type: 'trigger_severity'
message: "Come on, guys do something" operator: '>='
media_type: 'Email' value: 'Information'
send_to_users: operations:
- 'donotos' - type: send_message
subject: "Something bad is happening"
message: "Come on, guys do something"
media_type: 'Email'
send_to_users:
- 'donotos'