From 0afd677c98bbd6437d19809689c25a482b17fb1c Mon Sep 17 00:00:00 2001 From: Beu Date: Tue, 13 Apr 2021 22:13:22 +0200 Subject: [PATCH] Change name and add description to the template --- ...e App Nginx by Zabbix agent Enhanced.yaml} | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) rename NGINX/{module NGINX.yaml => Template App Nginx by Zabbix agent Enhanced.yaml} (88%) diff --git a/NGINX/module NGINX.yaml b/NGINX/Template App Nginx by Zabbix agent Enhanced.yaml similarity index 88% rename from NGINX/module NGINX.yaml rename to NGINX/Template App Nginx by Zabbix agent Enhanced.yaml index c3bf8ab..d423c66 100644 --- a/NGINX/module NGINX.yaml +++ b/NGINX/Template App Nginx by Zabbix agent Enhanced.yaml @@ -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'