Discussion:
network time is incorrect on cricket
Ryan Lin
2011-08-29 19:07:04 UTC
Permalink
hi all,

we have installed nav on one of our servers. everything is functioning properly except the time on the cricket.

the time on the cricket is showing the UTC time. i would like to change it to the PDT time, but don't know how as there is no documentation available on how to change the time in nav.

the server that's hosting the nav is synchronized to a public NTP server, so there is no issue with that.

does anyone know how to correct the time in cricket on nav?

thanks.
Joachim Tingvold
2011-08-31 09:11:02 UTC
Permalink
Post by Ryan Lin
the time on the cricket is showing the UTC time. i would like to change it to the PDT time, but don't know how as there is no documentation available on how to change the time in nav.
Cricket on our setup uses the time and timezone set on the system (I guess this is default behavior). If I change the time and/or timezone on the system, cricket reflects these changes.

Or did you want to have a different time/timezone in cricket, than what's on the system or in NAV?
--
Joachim
Ryan Lin
2011-08-31 18:38:25 UTC
Permalink
Hello

Thanks for the fast response.

Yeah, I wish that was the case, but it's not in our case.

The timezone on the server is set to the following:

net1:~# cat /etc/timezone
America/Los_Angeles
net1:~#

Below is the server's current time configuration:

net1:~# date
Wed Aug 31 11:27:51 PDT 2011
net1:~#

net1:~# hwclock --show
Wed 31 Aug 2011 11:28:02 AM PDT -0.345645 seconds
net1:~#

As you can see, the host's time is accurate. However, the cricket in the NAV is showing the UTC time, as shown in the following link below:

Loading Image.../

Any ideas?

Thanks for your help again!

Ryan Lin
Subject: Re: network time is incorrect on cricket
Date: Wed, 31 Aug 2011 11:11:02 +0200
Post by Ryan Lin
the time on the cricket is showing the UTC time. i would like to change it to the PDT time, but don't know how as there is no documentation available on how to change the time in nav.
Cricket on our setup uses the time and timezone set on the system (I guess this is default behavior). If I change the time and/or timezone on the system, cricket reflects these changes.
Or did you want to have a different time/timezone in cricket, than what's on the system or in NAV?
--
Joachim
Morten Brekkevold
2011-11-14 09:46:26 UTC
Permalink
Post by Ryan Lin
net1:~# cat /etc/timezone
America/Los_Angeles
net1:~#
net1:~# date
Wed Aug 31 11:27:51 PDT 2011
net1:~#
net1:~# hwclock --show
Wed 31 Aug 2011 11:28:02 AM PDT -0.345645 seconds
net1:~#
http://imageshack.us/photo/my-images/10/incorrecttime.jpg/
Any ideas?
Thanks for your help again!
I believe RRDTool internally stores all datapoints using a UTC
timestamp, but it will use whatever timezone it is told to arrive at the
UTC timestamp during an update (or in reverse for fetch/graph operations).

It could be that Cricket is either giving the wrong time zone
information to RRDtool during updates, or Apache is giving the wrong
time zone during graphing, I'm not sure which.

This can usually be controlled via the environment variable TZ, so you
may want to check what TZ is set to during updates (the cricket cronjob
installed by NAV) and graphing (i.e. under the Apache process).
--
Morten Brekkevold
UNINETT
Continue reading on narkive:
Loading...