VMware Cloud Community
BowmanIT
Contributor
Contributor

Monitor servers configured for different time zones?

Is their a way to configure Hyperic to know what time zone each server it monitors is in? We have database servers in 1 location, however some of those servers are set to their respective customer time zones. The problem being that the Agent and the HQ are not synced up and therefore do not provide statistics.

Thanks,
Scott F.
0 Kudos
7 Replies
dgorman_hyperic
Enthusiast
Enthusiast

Generally people use GMT when having multiple locations, then timezones are irrelevant.
0 Kudos
jtravis_hyperic
Hot Shot
Hot Shot

As Dan said, the system time for servers across timezones is usually
stored in GMT. Individual users can usually set their timezone and
thus get the 'correct' time when on the box.

It's absolutely essential that the HQ server and agent have the same
concept of time, otherwise you'd have agents reporting data for the
future (or in the past), and confuse the alerting subsystem.

-- Jon


On Apr 16, 2007, at 10:28 AM, Scott Farrell wrote:

> Is their a way to configure Hyperic to know what time zone each
> server it monitors is in? We have database servers in 1 location,
> however some of those servers are set to their respective customer
> time zones. The problem being that the Agent and the HQ are not
> synced up and therefore do not provide statistics.
>
> Thanks,
> Scott F.
>



0 Kudos
BowmanIT
Contributor
Contributor

Unfortunately that is not an option for me in this instance. I wish it were, but given how these particular Microsoft SQL databases work I simply cannot use GMT/UTC on them.
0 Kudos
jtravis_hyperic
Hot Shot
Hot Shot

One feature we could possibly add is a TimeZone offset ... or maybe a
'GMT Normalization' flag for agents. If they notice that they are in
a different timezone than GMT, simply offset the current time. This
would probably satisfy your requirements, yes?

-- Jon


On Apr 19, 2007, at 2:57 PM, Scott Farrell wrote:

> Unfortunately that is not an option for me in this instance. I
> wish it were, but given how these particular Microsoft SQL
> databases work I simply cannot use GMT/UTC on them.
>



0 Kudos
admin
Immortal
Immortal

The agent uses System.currentTimeMillis() to set the time-stamp on collected measurements. Doesn't this always use UTC? The only issue will be that the date that is printed in the UI will use the time zone of the HQ server, but from a time synchronization perspective you shouldn't have any problems.

-Ryan
0 Kudos
wartus
Contributor
Contributor

Hi, i was not able to find the option to set my local time for the HQ.

After some investigation it appears to be pretty simple:

you can set the HQ time-zone adding line 236 in hq-server.sh

235 -Djava.awt.headless=true \
236 -Duser.timezone=Europe/Paris \
237 -Djava.net.preferIPv4Stack=true \

reboot HQ and you should be set
0 Kudos
t1h0m1r
Contributor
Contributor

Thank you for the reply.

I do believe that this will solve all my problems. I will implement this later on today.

Thanks and have a good day.
0 Kudos