Forum Discussion

Derek_Lai's avatar
10 years ago

Monitor server timezone setting

Our application depends on server timezone settings be set to UTC instead of the actual location. We've found on occasions that some of the servers timezone setting was reset to the local timezone they are in. Is it possible to monitor the timezone setting so that when it is changed for some reason an alert will be sent?

1 Reply

Replies have been turned off for this discussion
  • If your servers are Windows servers - yes, you can do it. Good timing - we just wrote a blog about Windows Time monitoring today.

    See http://www.logicmonitor.com/blog/2015/07/10/windows-its-about-time/

    To solve this specific problem, I'd say get the Win_TimeOffset datasource and then:

    - add another complex datapoint, called TimeZoneOffset. Again, use Groovy script to calculate the value, but make the Groovy just this:

    rawDate=output["LOCALDATETIME"]

    TZ=rawDate[21..24].toInteger()

    return TZ

    This datapoint will now reflect the systems timezone offset from UTC, and you can set an alert if it does not equal zero.

    If oyu mean Linux servers, you could do a very similar thing by parsing the output of 1.3.6.1.2.1.25.6.3.1.5.1