Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4356

Parametrized templates doesn't work properly

XMLWordPrintable

      What I need is to monitor many similar instances of something (redis, mysql, whatever) on each server with ease. Let's start with CPU cores monitoring example. What I thought I should do (tricky way, I haven't found better):

      1. Create template CpuPerCoreBase with metric: system.cpu.util[{$CPU_NUMBER},user,avg1].
      2. Inherited CpuPerCore1 from CpuPerBase with macro {$CPU_NUMBER} -> {$CPU_NUMBER_1}.
      3. Inherited CpuPerCore2 from CpuPerBase with macro {$CPU_NUMBER} -> {$CPU_NUMBER_2}.
      4. Created host WEBSERVER1 wit marco: {$CPU_NUMBER_1} -> 0, {$CPU_NUMBER_2} -> 1.
      5. Tried to link templates CpuPerCore1 and CpuPerCore2 for WEBSERVER1 and got an error: "Template with item key [system.cpu.util[{$CPU_NUMBER},user,avg1]] already linked to host"

      The problem is that zabbix doesn't expand macro while adding templates and in result it sees two exact metrics. That's sad.

      If there any other flexible way to make some kind of parametrized templates, please let me know.

            Unassigned Unassigned
            bobrik Ian babrou
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: