Ad Widget

Collapse

Localtime and daylight savings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas Bollhalder
    Senior Member
    Zabbix Certified Specialist
    • Apr 2007
    • 144

    #1

    Localtime and daylight savings

    Hi

    I came up to a question about monitoring the time difference between a monitored host and the Zabbix server when daylight savings comes active.

    I use the item
    Code:
    system.localtime
    with a trigger
    Code:
    ({_o_linux-server:system.localtime.fuzzytime(300)}=0)|(({TRIGGER.VALUE}=1)&({_o_linux-server:system.localtime.fuzzytime(60)}=0))
    This will alarm me, when the monitored hosts get out of time sync (ON > 300s, OFF < 60s).

    But what will happen, when the daylight savings comes active and the monitored hosts or the Zabbix server are changing the time an hour asynchronously ? This would produce lots of alarms !

    Does anybody have a real solution, how to resolve this case ? I think about to make a trigger to get ON, when the time has been more then 300s out of sync for more than an amount off time (for example 900s). At the end, I'm searching, how to build a hysteresis in this case...

    Sincerly
    Andreas
    Zabbix statistics
    Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Interesting question. I have no idea how to configure this so far, yet I think it is doable.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • thiagomz
      Member
      • Jan 2010
      • 74

      #3
      today a lot of server changed to BRST (Brazilian Summer Time) e my trigger doesn't fire

      I Think zabbix look for UTC time e not to Timezone time.

      Comment

      • fpaternot
        Member
        Zabbix Certified Specialist
        • Feb 2013
        • 52

        #4
        Does anyone know how zabbix looks at time settings? Is it UTC?

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Originally posted by fpaternot
          Does anyone know how zabbix looks at time settings? Is it UTC?
          Right, Zabbix does keep all timestamps in UTC timezone.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • fpaternot
            Member
            Zabbix Certified Specialist
            • Feb 2013
            • 52

            #6
            Thanks Alexei

            Comment

            Working...