# zabbix/community-templates architecture

> Architecture diagram of the GitHub repository zabbix/community-templates, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zabbix/community-templates
- Repository: https://github.com/zabbix/community-templates

## Overview

This repository is a community catalog of Zabbix monitoring templates and supporting collectors, not a single application. The documented workflow is to choose and import a version-compatible template, configure it, then apply it to a host; the host’s Zabbix monitoring setup uses the template’s checks to produce monitoring data. The catalog spans application, infrastructure, and device domains. Sampled scripts show several collection styles, but many template definitions and their runtime wiring were not excerpted, so those connections are omitted.

Main entry points: [`Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py`](https://github.com/zabbix/community-templates/blob/main/Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py) (Huawei storage collector), [`Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py`](https://github.com/zabbix/community-templates/blob/main/Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py) (Zypper update collector), [`Unsorted/template_domainmonitor/6.2/files/dm.py`](https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/dm.py) (Domain checks), [`Unsorted/template_domainmonitor/6.2/files/zabbix/template_discover.js`](https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/zabbix/template_discover.js) (Domain discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Template catalog"]
  node_templates["Community templates"]
  node_applications["Application templates"]
  node_backup_dns_security["Backup, DNS, security"]
  node_mail_and_services["Mail and services"]
end

subgraph group_collectors["Collectors"]
  node_mailcow_collector["Mailcow collector"]
  node_domain_monitor["Domain checks<br/>[dm.py]"]
  node_domain_discovery["Domain discovery"]
  node_dns_resolver["DNS resolver check<br/>[dns-resolver.py]"]
  node_huawei_collector["Huawei storage collector"]
  node_zypper_collector["Zypper update collector"]
  node_supervisor_collector["Supervisor collector<br/>[supervisor.py]"]
  node_ups_collector["NUT collector<br/>[nut.py]"]
end

subgraph group_infrastructure["Infrastructure monitoring"]
  node_operating_systems["Operating systems"]
  node_virtualization["Virtualization templates"]
end

subgraph group_devices["Device monitoring"]
  node_storage["Storage templates"]
  node_power["Power templates"]
end

node_community(("Zabbix user"))
node_zabbix["Zabbix"]
node_monitored_host["Monitored host"]
node_dns_service["DNS service"]
node_huawei_storage["Huawei storage API"]
node_supervisor_service["Supervisor service"]
node_zypper["Zypper package manager"]
node_ups_service["NUT service"]
node_zabbix_sender["Zabbix sender"]

node_community -->|"selects and imports"| node_templates
node_templates -->|"import into"| node_zabbix
node_community -->|"configures host"| node_monitored_host
node_monitored_host -->|"uses template"| node_zabbix
node_dns_resolver -->|"queries DNS"| node_dns_service
node_huawei_collector -->|"requests API data"| node_huawei_storage
node_huawei_collector -->|"sends metrics"| node_zabbix_sender
node_zypper_collector -->|"queries updates"| node_zypper
node_zypper_collector -->|"sends results"| node_zabbix_sender
node_supervisor_collector -->|"reads process status"| node_supervisor_service
node_ups_collector -->|"reads UPS data"| node_ups_service
node_domain_discovery -.->|"provides discovery data"| node_domain_monitor
node_domain_monitor -->|"sends check results"| node_zabbix

click node_applications "https://github.com/zabbix/community-templates/tree/main/Applications"
click node_backup_dns_security "https://github.com/zabbix/community-templates/tree/main/Applications"
click node_mail_and_services "https://github.com/zabbix/community-templates/tree/main/Applications"
click node_operating_systems "https://github.com/zabbix/community-templates/tree/main/Operating_Systems"
click node_virtualization "https://github.com/zabbix/community-templates/tree/main/Virtualization"
click node_storage "https://github.com/zabbix/community-templates/tree/main/Storage_Devices"
click node_power "https://github.com/zabbix/community-templates/tree/main/Power_(UPS)"
click node_mailcow_collector "https://github.com/zabbix/community-templates/blob/main/Applications/template_mailcow/7.0/files/scripts/mailcow-collector.py"
click node_domain_monitor "https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/dm.py"
click node_domain_discovery "https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/zabbix/template_discover.js"
click node_dns_resolver "https://github.com/zabbix/community-templates/blob/main/Applications/DNS/template_dns_name_resolution/7.0/files/dns-resolver.py"
click node_huawei_collector "https://github.com/zabbix/community-templates/blob/main/Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py"
click node_zypper_collector "https://github.com/zabbix/community-templates/blob/main/Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py"
click node_supervisor_collector "https://github.com/zabbix/community-templates/blob/main/Applications/template_supervisor/5.4/files/script/supervisor.py"
click node_ups_collector "https://github.com/zabbix/community-templates/blob/main/Power_(UPS)/template_nut/5.2/files/nut.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_templates,node_applications,node_backup_dns_security,node_mail_and_services,node_community toneBlue
class node_mailcow_collector,node_domain_monitor,node_domain_discovery,node_dns_resolver,node_huawei_collector,node_zypper_collector,node_supervisor_collector,node_ups_collector,node_huawei_storage toneAmber
class node_operating_systems,node_virtualization toneMint
class node_storage,node_power toneRose
class node_zabbix,node_monitored_host,node_dns_service,node_supervisor_service,node_zypper,node_ups_service,node_zabbix_sender toneIndigo
```

## Components

### Template catalog

- **Community templates**
- [Application templates](https://github.com/zabbix/community-templates/tree/main/Applications): `Applications`
- [Backup, DNS, security](https://github.com/zabbix/community-templates/tree/main/Applications): `Applications`
- [Mail and services](https://github.com/zabbix/community-templates/tree/main/Applications): `Applications`

### Collectors

- [Mailcow collector](https://github.com/zabbix/community-templates/blob/main/Applications/template_mailcow/7.0/files/scripts/mailcow-collector.py): `Applications/template_mailcow/7.0/files/scripts/mailcow-collector.py`
- [Domain checks](https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/dm.py): `Unsorted/template_domainmonitor/6.2/files/dm.py`
- [Domain discovery](https://github.com/zabbix/community-templates/blob/main/Unsorted/template_domainmonitor/6.2/files/zabbix/template_discover.js): `Unsorted/template_domainmonitor/6.2/files/zabbix/template_discover.js`
- [DNS resolver check](https://github.com/zabbix/community-templates/blob/main/Applications/DNS/template_dns_name_resolution/7.0/files/dns-resolver.py): `Applications/DNS/template_dns_name_resolution/7.0/files/dns-resolver.py`
- [Huawei storage collector](https://github.com/zabbix/community-templates/blob/main/Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py): `Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py`
- [Zypper update collector](https://github.com/zabbix/community-templates/blob/main/Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py): `Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py`
- [Supervisor collector](https://github.com/zabbix/community-templates/blob/main/Applications/template_supervisor/5.4/files/script/supervisor.py): `Applications/template_supervisor/5.4/files/script/supervisor.py`
- [NUT collector](https://github.com/zabbix/community-templates/blob/main/Power_(UPS)/template_nut/5.2/files/nut.py): `Power_(UPS)/template_nut/5.2/files/nut.py`

### Infrastructure monitoring

- [Operating systems](https://github.com/zabbix/community-templates/tree/main/Operating_Systems): `Operating_Systems`
- [Virtualization templates](https://github.com/zabbix/community-templates/tree/main/Virtualization): `Virtualization`

### Device monitoring

- [Storage templates](https://github.com/zabbix/community-templates/tree/main/Storage_Devices): `Storage_Devices`
- [Power templates](https://github.com/zabbix/community-templates/tree/main/Power_(UPS)): `Power_(UPS)`

### Other components

- **Zabbix user**
- **Zabbix**
- **Monitored host**
- **DNS service**
- **Huawei storage API**
- **Supervisor service**
- **Zypper package manager**
- **NUT service**
- **Zabbix sender**

## Connections

- Zabbix user → Community templates: selects and imports (evidence: `README.md`)
- Community templates → Zabbix: import into (evidence: `README.md`)
- Zabbix user → Monitored host: configures host (evidence: `README.md`)
- Monitored host → Zabbix: uses template (evidence: `README.md`)
- DNS resolver check → DNS service: queries DNS (evidence: `Applications/DNS/template_dns_name_resolution/7.0/files/dns-resolver.py`)
- Huawei storage collector → Huawei storage API: requests API data (evidence: `Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py`)
- Huawei storage collector → Zabbix sender: sends metrics (evidence: `Storage_Devices/Huawei/template_huawei_oceanstore/5.0/files/huawei_get_state.py`)
- Zypper update collector → Zypper package manager: queries updates (evidence: `Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py`)
- Zypper update collector → Zabbix sender: sends results (evidence: `Operating_Systems/Linux/template_zypper_updateinfo/5.0/files/scripts/zypper-updateinfo.py`)
- Supervisor collector → Supervisor service: reads process status (evidence: `Applications/template_supervisor/5.4/files/script/supervisor.py`)
- NUT collector → NUT service: reads UPS data (evidence: `Power_(UPS)/template_nut/5.2/files/nut.py`)
- Domain discovery → Domain checks: provides discovery data
- Domain checks → Zabbix: sends check results (evidence: `Unsorted/template_domainmonitor/6.2/files/dm.py`)
