zabbix_templates/Template ICMP Ping.yaml

75 lines
2.4 KiB
YAML

zabbix_export:
version: '6.4'
template_groups:
- uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
- uuid: 71979c94746f43babcbb1b34a7eec0a6
template: 'Template ICMP Ping'
name: 'Template ICMP Ping'
groups:
- name: Templates
items:
- uuid: 0d18054748f54a00af3bf8f1d008202f
name: 'ICMP ping'
type: SIMPLE
key: icmpping
history: 1w
valuemap:
name: 'Service state'
request_method: POST
tags:
- tag: Application
value: ICMP
triggers:
- uuid: 4ea8f8380fc14a1dafde80997db408c8
expression: 'max(/Template ICMP Ping/icmpping,#3)=0'
name: '{HOST.NAME} is unavailable by ICMP'
priority: AVERAGE
- uuid: dc8aa465cde84fe0be03bc3a53dac531
name: 'ICMP loss'
type: SIMPLE
key: icmppingloss
history: 1w
value_type: FLOAT
units: '%'
request_method: POST
tags:
- tag: Application
value: ICMP
triggers:
- uuid: 10887da4f6054a2eb4ec0e23872c8d1c
expression: 'min(/Template ICMP Ping/icmppingloss,5m)>20'
name: 'Ping loss is too high on {HOST.NAME}'
priority: WARNING
dependencies:
- name: '{HOST.NAME} is unavailable by ICMP'
expression: 'max(/Template ICMP Ping/icmpping,#3)=0'
- uuid: 7139ecf865e6482eb879bcb854310f4c
name: 'ICMP response time'
type: SIMPLE
key: icmppingsec
history: 1w
value_type: FLOAT
units: s
request_method: POST
tags:
- tag: Application
value: ICMP
triggers:
- uuid: 473b1ddcb059414695d4e400ea29560a
expression: 'avg(/Template ICMP Ping/icmppingsec,5m)>0.15'
name: 'Response time is too high on {HOST.NAME}'
priority: WARNING
dependencies:
- name: '{HOST.NAME} is unavailable by ICMP'
expression: 'max(/Template ICMP Ping/icmpping,#3)=0'
valuemaps:
- uuid: d5ccd0fdcc824a949b023ef5a145903b
name: 'Service state'
mappings:
- value: '0'
newvalue: Down
- value: '1'
newvalue: Up