• 0
Sign in to follow this  
Derek Lai

Monitor server timezone setting

Question

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?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this