157 lines
4.9 KiB
YAML
157 lines
4.9 KiB
YAML
zabbix_export:
|
|
version: '6.4'
|
|
template_groups:
|
|
- uuid: 7df96b18c230490a9a0a9e2307226338
|
|
name: Templates
|
|
templates:
|
|
- uuid: 1b0a936b34fe4b9b82ba136a3fc3c99c
|
|
template: Template_Nginx
|
|
name: Template_Nginx
|
|
groups:
|
|
- name: Templates
|
|
items:
|
|
- uuid: 8e977105d75b425aa7c6501a9750bf0f
|
|
name: 'Nginx $1/sec'
|
|
key: 'nginx[accepted_connections,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
preprocessing:
|
|
- type: CHANGE_PER_SECOND
|
|
parameters:
|
|
- ''
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: 7e0164d3e9ed4e168888b0d7d9b3150b
|
|
name: 'Nginx $1'
|
|
key: 'nginx[active_connections,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: e895f25698d148708943d32a8c0e856b
|
|
name: 'Nginx $1/sec'
|
|
key: 'nginx[handled_connections,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
preprocessing:
|
|
- type: CHANGE_PER_SECOND
|
|
parameters:
|
|
- ''
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: 3f5317b7dd0944148346cfec0f7891e0
|
|
name: 'Nginx $1/sec'
|
|
key: 'nginx[handled_requests,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
preprocessing:
|
|
- type: CHANGE_PER_SECOND
|
|
parameters:
|
|
- ''
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: f51dd36d413b4b0dafae710f35902c5e
|
|
name: 'Nginx $1'
|
|
key: 'nginx[reading,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: 037de810ee6041eca0b057bf145f71f8
|
|
name: 'Nginx $1'
|
|
key: 'nginx[waiting,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: c4fa65b0b7024b7ea5d9366c1b73bbff
|
|
name: 'Nginx $1'
|
|
key: 'nginx[writing,{$NGINX_STATUS_URL}]'
|
|
history: 30d
|
|
value_type: FLOAT
|
|
tags:
|
|
- tag: Application
|
|
value: Nginx
|
|
- uuid: e2823ec678684ebca2184bf75bf92117
|
|
name: 'Number of $1 process'
|
|
snmp_oid: interfaces.ifTable.ifEntry.ifInOctets.1
|
|
key: 'proc.num[nginx]'
|
|
delay: 5m
|
|
history: 30d
|
|
triggers:
|
|
- uuid: e210309656f2473eb35b157074e4e203
|
|
expression: 'last(/Template_Nginx/proc.num[nginx])=0'
|
|
name: 'Nginx is not running on {HOSTNAME}'
|
|
priority: HIGH
|
|
description: |
|
|
Nginx is not running.
|
|
|
|
It has been stopped / shutdown or has crashed.
|
|
Check on the server for more details:
|
|
- w / last
|
|
- dmesg logs
|
|
- /var/log/messages
|
|
- nginx error logs
|
|
macros:
|
|
- macro: '{$NGINX_STATUS_URL}'
|
|
value: 'http://127.0.0.1:10061/nginx_status'
|
|
graphs:
|
|
- uuid: fb04c72c70274d37988493531ec1ab38
|
|
name: 'Nginx - Connections and Requests status'
|
|
show_work_period: 'NO'
|
|
show_triggers: 'NO'
|
|
ymin_type_1: FIXED
|
|
graph_items:
|
|
- drawtype: FILLED_REGION
|
|
color: FF9999
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[accepted_connections,{$NGINX_STATUS_URL}]'
|
|
- sortorder: '1'
|
|
drawtype: BOLD_LINE
|
|
color: '990000'
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[handled_connections,{$NGINX_STATUS_URL}]'
|
|
- sortorder: '2'
|
|
color: '009900'
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[handled_requests,{$NGINX_STATUS_URL}]'
|
|
- uuid: 7d1b941135824797a08fe6a6af11b5fc
|
|
name: 'Nginx - Threads status'
|
|
show_work_period: 'NO'
|
|
show_triggers: 'NO'
|
|
type: STACKED
|
|
ymin_type_1: FIXED
|
|
graph_items:
|
|
- drawtype: FILLED_REGION
|
|
color: '990000'
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[writing,{$NGINX_STATUS_URL}]'
|
|
- sortorder: '1'
|
|
drawtype: FILLED_REGION
|
|
color: '999900'
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[reading,{$NGINX_STATUS_URL}]'
|
|
- sortorder: '2'
|
|
drawtype: FILLED_REGION
|
|
color: '009900'
|
|
calc_fnc: MAX
|
|
item:
|
|
host: Template_Nginx
|
|
key: 'nginx[waiting,{$NGINX_STATUS_URL}]'
|