Compare commits

..

5 Commits

Author SHA1 Message Date
João Pedro Toledo Goncalves ad01642166 docs: update generated documentation for Exchange and Windows templates 2026-01-13 14:52:42 -03:00
João Pedro Toledo Goncalves a8761517c4 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.
2026-01-13 14:50:23 -03:00
João Pedro Toledo Goncalves 94ffd94e89 feat(exchange): Create v2 template with robust PerfCounter keys and fixed import 2026-01-13 14:25:03 -03:00
João Pedro Toledo Goncalves 505586ee7c fix: Resolve runtime errors in Exchange (DB Size) and Windows (Active Types) 2026-01-13 14:14:25 -03:00
João Pedro Toledo Goncalves d68f842c49 fix(exchange): Update graph prototype key to match item key 2026-01-13 14:08:09 -03:00
4 changed files with 44 additions and 21 deletions

View File

@ -314,6 +314,13 @@ zabbix_export:
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
key: perf_instance.discovery["MSExchange Active Manager"] key: perf_instance.discovery["MSExchange Active Manager"]
delay: 1h delay: 1h
filter:
evaltype: AND
conditions:
- macro: '{#INSTANCE}'
value: _Total
operator: NOT_MATCHES_REGEX
formulaid: A
description: Descoberta de instâncias de Bancos de Dados Database. description: Descoberta de instâncias de Bancos de Dados Database.
item_prototypes: item_prototypes:
- uuid: d6c7a4d5987540cb850ac5744a3d1042 - uuid: d6c7a4d5987540cb850ac5744a3d1042
@ -367,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
@ -381,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
@ -402,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.
@ -438,7 +445,7 @@ zabbix_export:
- uuid: 0ea0824b26714249a2a90965377f0c10 - uuid: 0ea0824b26714249a2a90965377f0c10
name: 'Banco [{#INSTANCE}]: Total de Itens' name: 'Banco [{#INSTANCE}]: Total de Itens'
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
key: perf_counter_en["\MSExchange IS Store({#INF.STORE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}] key: perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}]
delay: 15m delay: 15m
value_type: FLOAT value_type: FLOAT
description: Contagem total de itens no banco de dados. description: Contagem total de itens no banco de dados.
@ -466,7 +473,7 @@ zabbix_export:
- color: 199C0D - color: 199C0D
item: item:
host: 'Microsoft Exchange Server 2016 by Zabbix agent active' host: 'Microsoft Exchange Server 2016 by Zabbix agent active'
key: perf_counter_en["\MSExchange IS Store({#INF.STORE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}] key: perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}]
httptests: httptests:
- uuid: 2e6bd09c77fa434cbc8c02ad74d12b7c - uuid: 2e6bd09c77fa434cbc8c02ad74d12b7c
name: 'Teste de Disponibilidade: OWA' name: 'Teste de Disponibilidade: OWA'

View File

@ -42,11 +42,11 @@ Desenvolvido por Arthur "O Farol" Mendes.
- Banco [{#INSTANCE}]: Função da Cópia (`perf_counter_en["\MSExchange Active Manager({#INSTANCE})\Database Copy Role Active"]`) - Banco [{#INSTANCE}]: Função da Cópia (`perf_counter_en["\MSExchange Active Manager({#INSTANCE})\Database Copy Role Active"]`)
- Banco [{#INSTANCE}]: Page Faults/seg (`perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Page Faults/seg (`perf_counter_en["\MSExchange Database({#INF.STORE})\Database Page Fault Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]`)
- Banco [{#INSTANCE}]: Logs Aguardando (Stalled) (`perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Logs Aguardando (Stalled) (`perf_counter_en["\MSExchange Database({#INF.STORE})\Log Record Stalls/sec", {$MS.EXCHANGE.PERF.INTERVAL}]`)
- Banco [{#INSTANCE}]: Latência de Leitura (Ativo) (`perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Latência de Leitura (Ativo) (`perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Reads (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]`)
- Banco [{#INSTANCE}]: Latência de Escrita (Ativo) (`perf_counter_en["\MSExchange Database ==> Instances({#INF.STORE}/_Total)\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Latência de Escrita (Ativo) (`perf_counter_en["\MSExchange Database({#INF.STORE})\I/O Database Writes (Attached) Average Latency", {$MS.EXCHANGE.PERF.INTERVAL}]`)
- Banco [{#INSTANCE}]: Estado (`perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Database State"]`) - Banco [{#INSTANCE}]: Estado (`perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Database State"]`)
- Banco [{#INSTANCE}]: Tamanho do Arquivo (`perf_counter_en["\MSExchange Database({#INF.STORE})\Database File Size In Bytes", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Tamanho do Arquivo (`perf_counter_en["\MSExchange Database({#INF.STORE})\Database File Size In Bytes", {$MS.EXCHANGE.PERF.INTERVAL}]`)
- Banco [{#INSTANCE}]: Total de Itens (`perf_counter_en["\MSExchange IS Store({#INF.STORE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}]`) - Banco [{#INSTANCE}]: Total de Itens (`perf_counter_en["\MSExchangeIS Store({#INSTANCE})\Item Count", {$MS.EXCHANGE.PERF.INTERVAL}]`)
## Alertas (Triggers) ## Alertas (Triggers)

View File

@ -275,14 +275,13 @@ zabbix_export:
- tag: scope - tag: scope
value: performance value: performance
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
- uuid: 5d99b356e30444a0b99e597506f35a69 - uuid: 2bd53767f40742f5926615b3c586111a
name: 'Sistema: Nome do Computador' name: 'Windows: Nome do Host'
key: system.hostname key: system.hostname
delay: 1h delay: 1h
value_type: CHAR
trends: '0' trends: '0'
description: Nome do host do sistema. value_type: CHAR
inventory_link: NAME description: 'System host name.'
preprocessing: preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT - type: DISCARD_UNCHANGED_HEARTBEAT
parameters: parameters:
@ -291,17 +290,33 @@ zabbix_export:
- tag: component - tag: component
value: system value: system
triggers: triggers:
- uuid: 2c099c9ec90f47858bc117f0f7d957c0 - uuid: 09551d020e984f478477610330999084
expression: change(/Windows by Zabbix agent/system.hostname) and length(last(/Windows by Zabbix agent/system.hostname))>0 expression: change(/Windows by Zabbix agent/system.hostname) and length(last(/Windows by Zabbix agent/system.hostname))>0
name: ' Windows: Nome do Host Mudou' name: ' Windows: Nome do Host Mudou'
event_name: ' Windows: Nome do Host Mudou (new name: {ITEM.VALUE})' event_name: ' Windows: Nome do Host Mudou (Novo: {ITEM.VALUE})'
priority: INFO priority: INFO
description: O nome do sistema mudou. Reconheça para fechar o problema manualmente. description: 'Windows host name has changed. Ack to close.'
manual_close: 'YES' manual_close: 'YES'
tags: tags:
- tag: scope - tag: scope
value: notice value: notice
type: ZABBIX_ACTIVE type: ZABBIX_ACTIVE
- uuid: 53c71360156d4758bd05358999812674
name: 'Windows: Arquitetura do Sistema'
key: system.uname
delay: 1h
trends: '0'
value_type: CHAR
description: 'System architecture (e.g. x86, x64).'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
type: ZABBIX_ACTIVE
- uuid: 89f928affba54c4a8dc7abead09cac68 - uuid: 89f928affba54c4a8dc7abead09cac68
name: 'Sistema: Hora Local' name: 'Sistema: Hora Local'
key: system.localtime key: system.localtime
@ -524,7 +539,7 @@ zabbix_export:
- uuid: 64875dc74c3a45da82ddad6648198304 - uuid: 64875dc74c3a45da82ddad6648198304
name: Disponibilidade do Agente Zabbix name: Disponibilidade do Agente Zabbix
type: INTERNAL type: INTERNAL
key: zabbix[host,agent,disponível] key: zabbix[host,agent,available]
description: Usado para monitorar a disponibilidade do agente. description: Usado para monitorar a disponibilidade do agente.
valuemap: valuemap:
name: zabbix.host.disponível name: zabbix.host.disponível
@ -533,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

View File

@ -28,7 +28,8 @@ Inclui: RDP, Fila de Disco, Auditoria de Login e traduções completas.
- **Sistema: Número de Threads** (`perf_counter_en["\System\Threads"]`) - **Sistema: Número de Threads** (`perf_counter_en["\System\Threads"]`)
- **Sistema: Número de Processos** (`proc.num[]`) - **Sistema: Número de Processos** (`proc.num[]`)
- **CPU: Utilização Total** (`system.cpu.util`) - **CPU: Utilização Total** (`system.cpu.util`)
- **Sistema: Nome do Computador** (`system.hostname`) - **Windows: Nome do Host** (`system.hostname`)
- **Windows: Arquitetura do Sistema** (`system.uname`)
- **Sistema: Hora Local** (`system.localtime`) - **Sistema: Hora Local** (`system.localtime`)
- **Sistema: Arquitetura do SO** (`system.sw.arch`) - **Sistema: Arquitetura do SO** (`system.sw.arch`)
- **Sistema: Versão do SO** (`system.sw.os`) - **Sistema: Versão do SO** (`system.sw.os`)
@ -43,7 +44,7 @@ Inclui: RDP, Fila de Disco, Auditoria de Login e traduções completas.
- **Memória: % de Utilização** (`vm.memory.util`) - **Memória: % de Utilização** (`vm.memory.util`)
- **Windows: Network interfaces WMI get** (`wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]`) - **Windows: Network interfaces WMI get** (`wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]`)
- **Hardware: Número de Cores** (`wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]`) - **Hardware: Número de Cores** (`wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]`)
- **Disponibilidade do Agente Zabbix** (`zabbix[host,agent,disponível]`) - **Disponibilidade do Agente Zabbix** (`zabbix[host,agent,available]`)
- **RDP: Sessões Ativas (Total)** (`perf_counter_en["\Terminal Services\Total Sessions"]`) - **RDP: Sessões Ativas (Total)** (`perf_counter_en["\Terminal Services\Total Sessions"]`)
- **Disco: Tamanho da Fila (Queue Length)** (`perf_counter_en["\PhysicalDisk(_Total)\Current Disk Queue Length"]`) - **Disco: Tamanho da Fila (Queue Length)** (`perf_counter_en["\PhysicalDisk(_Total)\Current Disk Queue Length"]`)
- **Segurança: Falhas de Login (Audit Failure)** (`eventlog[Security,,,,4625]`) - **Segurança: Falhas de Login (Audit Failure)** (`eventlog[Security,,,,4625]`)