Change name and add description to the template

This commit is contained in:
Beu 2021-04-13 22:13:22 +02:00
parent 0f1cdef85b
commit 0afd677c98

View File

@ -1,15 +1,21 @@
zabbix_export: zabbix_export:
version: '5.2' version: '5.2'
date: '2021-04-12T09:50:22Z' date: '2021-04-13T20:12:16Z'
groups: groups:
- -
name: Templates name: Templates
- -
name: Templates/Modules name: Templates/Applications
templates: templates:
- -
template: 'Template Module NGINX' template: 'Template App Nginx by Zabbix agent Enhanced'
name: 'Template Module NGINX' 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: templates:
- -
name: 'Template App Nginx by Zabbix agent' name: 'Template App Nginx by Zabbix agent'
@ -17,7 +23,7 @@ zabbix_export:
- -
name: Templates name: Templates
- -
name: Templates/Modules name: Templates/Applications
applications: applications:
- -
name: DNS name: DNS
@ -101,10 +107,10 @@ zabbix_export:
dependencies: dependencies:
- -
name: 'No valid {#DOMAIN} certificate' 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' 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' expression: '{last()}<1'
name: 'TLS Certificate of {#DOMAIN} have expired' name: 'TLS Certificate of {#DOMAIN} have expired'
@ -168,7 +174,7 @@ zabbix_export:
dependencies: dependencies:
- -
name: 'No valid {#DOMAIN} certificate' 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}' name: 'HTTPS Status code for {#DOMAIN}'
type: DEPENDENT type: DEPENDENT
@ -266,7 +272,7 @@ zabbix_export:
dependencies: dependencies:
- -
name: 'No DNS Entry for {#DOMAIN}' 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}' name: 'HTTP Request to {#DOMAIN}'
type: HTTP_AGENT type: HTTP_AGENT
@ -312,7 +318,7 @@ zabbix_export:
name: Logs name: Logs
trigger_prototypes: 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' name: '{#DOMAIN}: Some 500 errors'
priority: HIGH priority: HIGH
manual_close: 'YES' manual_close: 'YES'