Ad Widget

Collapse

Использование часового пояса в пользовательских интервалах

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Victor Sklyarov
    Senior Member
    • Apr 2016
    • 184

    #1

    Использование часового пояса в пользовательских интервалах

    Необходимо формировать значение вычисляемого элемента 1 раз в сутки wd1-7h23m50. Узлы расположены в нескольких часовых поясах и формировать элемент нужно в соответствии с временем часового пояса, а не пояса заданного на сервере zabbix. Можно ли использовать макрос со смещением часового пояса в пользовательских интервалах?
  • Victor Sklyarov
    Senior Member
    • Apr 2016
    • 184

    #2
    Thanks to. This is not in the Russian documentation. To add a node-level macro, I created several templates with different macro meanings. Added matching templates to node groups.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4811

      #3
      Sorry for english...
      I think you can do it if you have a host level macro with correct value, which already considers offset from server. So you can have a template, which only declares {$RUN_TIME} as custom interval and you define that macro on each host separately... for some define it as wd1-7h22m50, for some wd1-7h00m50
      Custom intervals :

      are supported.
      A single macro has to fill the whole field. Multiple macros in a field or macros mixed with text are not supported.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4811

        #4
        Yes, those "timezone" templates, defining only macros or tags and which are linked to "main" template are good idea!
        Russian docs say
        Пользовательские интервалы : Поддерживаются

        .
        Pretty much the same... just don't specify that whole field has to be filled with one macro...

        Comment

        Working...