fix(zabbix): resolve template import errors in Exchange and Windows

- Exchange: Corrected corrupted 'perf_counter_en' keys causing 'Instance' artifacts.
- Exchange: Synced trigger expressions with corrected item keys.
- Windows: Replaced invalid 'manual_close: 1' with 'YES' to match Zabbix 7.0 spec.
- Windows: Removed duplicate 'system.sw.os' item to prevent key collisions.
- Windows: Fixed 'Agente Zabbix Indisponível' trigger utilizing incorrect key translation.
This commit is contained in:
João Pedro Toledo Goncalves 2026-01-13 14:50:23 -03:00
parent 94ffd94e89
commit a8761517c4
2 changed files with 7 additions and 35 deletions

View File

@ -374,7 +374,7 @@ zabbix_export:
- uuid: 81ac288a0d784f8d9cd99883b44797ee - uuid: 81ac288a0d784f8d9cd99883b44797ee
name: 'Banco [{#INSTANCE}]: Latência de Leitura (Ativo)' name: 'Banco [{#INSTANCE}]: Latência de Leitura (Ativo)'
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
key: perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}] key: perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]
delay: '{$MS.EXCHANGE.PERF.INTERVAL}' delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
value_type: FLOAT value_type: FLOAT
units: s units: s
@ -388,14 +388,14 @@ zabbix_export:
value: performance value: performance
trigger_prototypes: trigger_prototypes:
- uuid: bc1a548c79bc428ea005f652e699f4cc - uuid: bc1a548c79bc428ea005f652e699f4cc
expression: min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.READ.TIME})>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN} expression: min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.READ.TIME})>{$MS.EXCHANGE.DB.ACTIVE.READ.WARN}
name: '🐢 Exchange: Latência de Leitura Alta em {#INSTANCE}' name: '🐢 Exchange: Latência de Leitura Alta em {#INSTANCE}'
priority: WARNING priority: WARNING
description: A latência de leitura está acima de 20ms sustentados. description: A latência de leitura está acima de 20ms sustentados.
- uuid: 3fe061c683b9424c8b88caade4a5a4e3 - uuid: 3fe061c683b9424c8b88caade4a5a4e3
name: 'Banco [{#INSTANCE}]: Latência de Escrita (Ativo)' name: 'Banco [{#INSTANCE}]: Latência de Escrita (Ativo)'
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
key: perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}] key: perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]
delay: '{$MS.EXCHANGE.PERF.INTERVAL}' delay: '{$MS.EXCHANGE.PERF.INTERVAL}'
value_type: FLOAT value_type: FLOAT
units: s units: s
@ -409,7 +409,7 @@ zabbix_export:
value: performance value: performance
trigger_prototypes: trigger_prototypes:
- uuid: 47c01687add949ab8f72633ae8a1f53f - uuid: 47c01687add949ab8f72633ae8a1f53f
expression: min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME})>{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN} expression: min(/Microsoft Exchange Server 2016 by Zabbix agent active/perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}],{$MS.EXCHANGE.DB.ACTIVE.WRITE.TIME})>{$MS.EXCHANGE.DB.ACTIVE.WRITE.WARN}
name: '🐢 Exchange: Latência de Escrita Alta em {#INSTANCE}' name: '🐢 Exchange: Latência de Escrita Alta em {#INSTANCE}'
priority: WARNING priority: WARNING
description: A latência de escrita está acima de 50ms sustentados. description: A latência de escrita está acima de 50ms sustentados.

View File

@ -296,40 +296,12 @@ zabbix_export:
event_name: ' Windows: Nome do Host Mudou (Novo: {ITEM.VALUE})' event_name: ' Windows: Nome do Host Mudou (Novo: {ITEM.VALUE})'
priority: INFO priority: INFO
description: 'Windows host name has changed. Ack to close.' description: 'Windows host name has changed. Ack to close.'
manual_close: '1' manual_close: 'YES'
tags:
- tag: scope
value: notice
type: ZABBIX_ACTIVE
- uuid: 82747dcb5ad644268e3678097b692882
name: 'Windows: Informação do Sistema'
key: system.sw.os
delay: 1h
trends: '0'
value_type: CHAR
description: 'System description of the host.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: 4323c223bd4e40269389774640960528
expression: change(/Windows by Zabbix agent/system.sw.os) and length(last(/Windows by Zabbix agent/system.sw.os))>0
name: ' Windows: SO Atualizado/Alterado'
event_name: ' Windows: SO Atualizado/Alterado (Novo: {ITEM.VALUE})'
priority: INFO
description: 'Operating system description has changed. Possible update installed.'
manual_close: '1'
dependencies:
- name: ' Windows: Nome do Host Mudou'
expression: change(/Windows by Zabbix agent/system.hostname) and length(last(/Windows by Zabbix agent/system.hostname))>0
tags: tags:
- tag: scope - tag: scope
value: notice value: notice
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
- uuid: 53c71360156d4758bd05358999812674 - uuid: 53c71360156d4758bd05358999812674
name: 'Windows: Arquitetura do Sistema' name: 'Windows: Arquitetura do Sistema'
key: system.uname key: system.uname
@ -576,7 +548,7 @@ zabbix_export:
value: system value: system
triggers: triggers:
- uuid: 2a79c64e07144a40b728e4a210fa0976 - uuid: 2a79c64e07144a40b728e4a210fa0976
expression: max(/Windows by Zabbix agent/zabbix[host,agent,disponível],{$AGENT.TIMEOUT})=0 expression: max(/Windows by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0
name: '🚨 Windows: Agente Zabbix Indisponível' name: '🚨 Windows: Agente Zabbix Indisponível'
event_name: '🚨 Windows: Agente Zabbix Indisponível (for {$AGENT.TIMEOUT})' event_name: '🚨 Windows: Agente Zabbix Indisponível (for {$AGENT.TIMEOUT})'
priority: AVERAGE priority: AVERAGE