Ad Widget

Collapse

Triggers using templates AND calculated items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ikaxs
    Junior Member
    • Sep 2018
    • 1

    #1

    Triggers using templates AND calculated items

    Hey all.
    I'm new to zabbix and after endless googling, and reading the documentation, I can't find a solution.
    My goal is to create a check that makes sure that servers are in the correct timezone.

    I have all servers required to be in CET timezone in a template, I also have another server, to act as the reference point.

    I have the servers returning the localtime, which is converted to a number (unsigned) after the string is filtered using a regex.
    so, that bit works ok now.

    It'd be GREAT if you could compare strings in triggers.

    I have a calculated item that does the same thing as the templated item, (which does feel inefficient to me)
    surely I should be able to use the templated check and reference a specific host in a trigger? but I can't it throws an error.

    I'd like to create a trigger, that applies to the template, and references the calculated item.
    what's the syntax?

    this doesn't work, but what should the structure be if its possible?

    ```{Template Timezone CET Check:system.localtime[local].last() <> localtime_calc_item}```
    doesn't work.

    Many thanks

    Ian
Working...