Template Generator Help

πŸ›  Help & Usage Guide: Zabbix Template Generator from Excel CSV

This tool allows you to generate valid Zabbix JSON templates directly from Excel-like CSV content.
Paste your data into the input field, click Generate, and the resulting Zabbix template will appear in the output area.


πŸ“₯ Download Starter File

πŸ“„ Download a base Excel CSV as start


πŸ“„ CSV Format & Supported Types

Each line must contain a Type column to define the type of Zabbix object. Different types use different fields.


πŸ”· Supported Types & Fields

βœ… VALUEMAP

Defines value mappings for items (e.g. 0 β†’ Down, 1 β†’ Up).

VALUEMAP, one, 0, Down
VALUEMAP, one, 1, Up

βœ… MACRO

Defines template-level macros, such as {$MACRO1}.

MACRO, {$MACRO1}, 1
MACRO, {$MACRO2}, 2

βœ… MODBUS

Creates items and optional triggers for Modbus-based monitoring.

Supports: trigger conditions (see below), macros in endpoints like tcp://{$MODBUSIP}:{$MODBUSPORT}

βœ… SNMP

Defines SNMP-based item and trigger entries.

βœ… API

Defines trapper items that receive values via API or external scripts.


🧠 TriggerType: Options & Meaning

TriggerTypeDescription
autoAuto-generates a trigger using TriggerCondition and the item key.
rawFull Zabbix expression is provided (e.g., last(/template/item)>30).
xDisabled or placeholder. No trigger will be created.

πŸ”₯ TriggerCondition: Supported Expressions

These are used with TriggerType = auto and are applied to the current item key. They're transformed into Zabbix expressions like last(/template/key) <condition>.

Format Meaning Example Translates To
>X Greater than X >30 last(...) > 30
<X Less than X <10 last(...) < 10
between(X,Y)=1 Between X and Y between(20,22)=1 last(...) >= 20 and last(...) <= 22
between(X,Y)=0 Not between between(20,22)=0 last(...) < 20 or last(...) > 22
in(A,B,C)=1 Value is one of A, B, C in(20,21,22)=1 last(...)=20 or last(...)=21 or last(...)=22
in(A,B,C)=0 Value is NOT A, B, or C in(20,21,22)=0 last(...)β‰ 20 and last(...)β‰ 21 and last(...)β‰ 22
<X or >Y Outside range <20 or >22 last(...) < 20 or last(...) > 22
>X and <Y Inside range (strict) >19 and <23 last(...) > 19 and last(...) < 23
between(...) or in(...) Combined logic between(20,22)=1 or in(30,31)=1 Logical OR combination
in("a","b")=1 Text match in("OK","READY")=1 str(...)="OK" or str(...)="READY"

πŸ“Œ Tips