2022-01-11 09:09:32 +01:00
|
|
|
zabbix_export:
|
|
|
|
version: '5.2'
|
|
|
|
date: '2021-12-01T13:26:59Z'
|
|
|
|
groups:
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: Templates/Applications
|
2022-01-11 09:09:32 +01:00
|
|
|
templates:
|
2022-01-19 13:11:00 +01:00
|
|
|
- template: Tornado-relayer
|
2022-01-11 09:09:32 +01:00
|
|
|
name: Tornado-relayer
|
|
|
|
groups:
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: Templates/Applications
|
2022-01-11 09:09:32 +01:00
|
|
|
items:
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: 'tornado-relayer: health.error'
|
2022-01-11 09:09:32 +01:00
|
|
|
type: DEPENDENT
|
|
|
|
key: tornado-relayer.health.error
|
|
|
|
delay: '0'
|
|
|
|
trends: '0'
|
|
|
|
value_type: TEXT
|
|
|
|
preprocessing:
|
2022-01-19 13:11:00 +01:00
|
|
|
- type: JSONPATH
|
2022-01-11 09:09:32 +01:00
|
|
|
parameters:
|
|
|
|
- $.health.error
|
|
|
|
master_item:
|
|
|
|
key: 'web.page.get[{$URL}]'
|
|
|
|
triggers:
|
2022-01-19 13:11:00 +01:00
|
|
|
- expression: '{last()}<>""'
|
2022-01-11 09:09:32 +01:00
|
|
|
name: 'tornado-relayer: health error'
|
|
|
|
priority: AVERAGE
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: 'tornado-relayer: health.status'
|
2022-01-11 09:09:32 +01:00
|
|
|
type: DEPENDENT
|
|
|
|
key: tornado-relayer.health.status
|
|
|
|
delay: '0'
|
|
|
|
trends: '0'
|
|
|
|
value_type: TEXT
|
|
|
|
preprocessing:
|
2022-01-19 13:11:00 +01:00
|
|
|
- type: JSONPATH
|
2022-01-11 09:09:32 +01:00
|
|
|
parameters:
|
|
|
|
- $.health.status
|
|
|
|
master_item:
|
|
|
|
key: 'web.page.get[{$URL}]'
|
|
|
|
triggers:
|
2022-01-19 13:11:00 +01:00
|
|
|
- expression: '{last(#3)}<>"true"'
|
2022-01-11 09:09:32 +01:00
|
|
|
name: 'tornado-relayer: health status <> true'
|
|
|
|
priority: HIGH
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: 'tornado-relayer: data'
|
2022-01-11 09:09:32 +01:00
|
|
|
type: ZABBIX_ACTIVE
|
|
|
|
key: 'web.page.get[{$URL}]'
|
|
|
|
history: '0'
|
|
|
|
trends: '0'
|
|
|
|
value_type: TEXT
|
|
|
|
preprocessing:
|
2022-01-19 13:11:00 +01:00
|
|
|
- type: REGEX
|
2022-01-11 09:09:32 +01:00
|
|
|
parameters:
|
|
|
|
- '\n\s?\n([\s\S]*)'
|
|
|
|
- \1
|
|
|
|
httptests:
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: 'tornado-relayer: status page'
|
2022-01-11 09:09:32 +01:00
|
|
|
agent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36'
|
|
|
|
steps:
|
2022-01-19 13:11:00 +01:00
|
|
|
- name: 'status page'
|
2022-01-11 09:09:32 +01:00
|
|
|
url: '{$URL}'
|
|
|
|
follow_redirects: 'NO'
|
|
|
|
required: status
|
|
|
|
status_codes: '200'
|
|
|
|
triggers:
|
2022-01-19 13:11:00 +01:00
|
|
|
- expression: '{Tornado-relayer:web.test.fail[tornado-relayer: status page].last()}>0'
|
2022-01-11 09:09:32 +01:00
|
|
|
name: 'tornado-relayer: status page failed'
|
|
|
|
priority: AVERAGE
|
2022-01-19 13:11:00 +01:00
|
|
|
- expression: '{Tornado-relayer:web.test.rspcode[tornado-relayer: status page,status page].last(#3)}<>200'
|
2022-01-11 09:09:32 +01:00
|
|
|
name: 'tornado-relayer: status page rspcode <>200'
|
|
|
|
priority: HIGH
|