Change name and add description to the template
This commit is contained in:
parent
0f1cdef85b
commit
0afd677c98
@ -1,15 +1,21 @@
|
||||
zabbix_export:
|
||||
version: '5.2'
|
||||
date: '2021-04-12T09:50:22Z'
|
||||
date: '2021-04-13T20:12:16Z'
|
||||
groups:
|
||||
-
|
||||
name: Templates
|
||||
-
|
||||
name: Templates/Modules
|
||||
name: Templates/Applications
|
||||
templates:
|
||||
-
|
||||
template: 'Template Module NGINX'
|
||||
name: 'Template Module NGINX'
|
||||
template: 'Template App Nginx by Zabbix agent Enhanced'
|
||||
name: 'Template App Nginx by Zabbix agent Enhanced'
|
||||
description: |
|
||||
This template extends the "Template App Nginx by Zabbix agent" template by adding :
|
||||
* Certificate detection and verification
|
||||
* Verification of the existence of a DNS entry for each "server_name"
|
||||
* Analysis of virtual host logs (5XX responses)
|
||||
* Verification of the status code of the roots of each virtual host
|
||||
templates:
|
||||
-
|
||||
name: 'Template App Nginx by Zabbix agent'
|
||||
@ -17,7 +23,7 @@ zabbix_export:
|
||||
-
|
||||
name: Templates
|
||||
-
|
||||
name: Templates/Modules
|
||||
name: Templates/Applications
|
||||
applications:
|
||||
-
|
||||
name: DNS
|
||||
@ -101,10 +107,10 @@ zabbix_export:
|
||||
dependencies:
|
||||
-
|
||||
name: 'No valid {#DOMAIN} certificate'
|
||||
expression: '{Template Module NGINX:cert-existence[{#DOMAIN}].str(true)}=0'
|
||||
expression: '{Template App Nginx by Zabbix agent Enhanced:cert-existence[{#DOMAIN}].str(true)}=0'
|
||||
-
|
||||
name: 'TLS Certificate of {#DOMAIN} have expired'
|
||||
expression: '{Template Module NGINX:cert-remaining-days[{#DOMAIN}].last()}<1'
|
||||
expression: '{Template App Nginx by Zabbix agent Enhanced:cert-remaining-days[{#DOMAIN}].last()}<1'
|
||||
-
|
||||
expression: '{last()}<1'
|
||||
name: 'TLS Certificate of {#DOMAIN} have expired'
|
||||
@ -168,7 +174,7 @@ zabbix_export:
|
||||
dependencies:
|
||||
-
|
||||
name: 'No valid {#DOMAIN} certificate'
|
||||
expression: '{Template Module NGINX:cert-existence[{#DOMAIN}].str(true)}=0'
|
||||
expression: '{Template App Nginx by Zabbix agent Enhanced:cert-existence[{#DOMAIN}].str(true)}=0'
|
||||
-
|
||||
name: 'HTTPS Status code for {#DOMAIN}'
|
||||
type: DEPENDENT
|
||||
@ -266,7 +272,7 @@ zabbix_export:
|
||||
dependencies:
|
||||
-
|
||||
name: 'No DNS Entry for {#DOMAIN}'
|
||||
expression: '{Template Module NGINX:dns-check[{#DOMAIN}].strlen()}<1'
|
||||
expression: '{Template App Nginx by Zabbix agent Enhanced:dns-check[{#DOMAIN}].strlen()}<1'
|
||||
-
|
||||
name: 'HTTP Request to {#DOMAIN}'
|
||||
type: HTTP_AGENT
|
||||
@ -312,7 +318,7 @@ zabbix_export:
|
||||
name: Logs
|
||||
trigger_prototypes:
|
||||
-
|
||||
expression: '{Template Module NGINX:log[{#PATH},.*\" 5\d\d ,,100,skip].nodata(1m)}=0 and {Template Module NGINX:500errors.count[{#DOMAIN},{#PATH}].last()}>={$500.ERROR.RATES}'
|
||||
expression: '{Template App Nginx by Zabbix agent Enhanced:log[{#PATH},.*\" 5\d\d ,,100,skip].nodata(1m)}=0 and {Template App Nginx by Zabbix agent Enhanced:500errors.count[{#DOMAIN},{#PATH}].last()}>={$500.ERROR.RATES}'
|
||||
name: '{#DOMAIN}: Some 500 errors'
|
||||
priority: HIGH
|
||||
manual_close: 'YES'
|
Loading…
Reference in New Issue
Block a user