Xymon Mailing List Archive search

problem with display time

3 messages in this thread

list Michael Baydoun · Fri, 2 May 2014 15:22:23 -0400 ·
Running version 4.3.17

The time on the server itself is correct.  The time on in the upper right
corner of the nongreen.html and main screen xymon.html is correct.  The
time on most other pages is 4 hours ahead, which happens to be the current
difference between EDT and UTC time.

Any idea why and how to fix?
list Japheth Cleaver · Fri, 2 May 2014 14:24:30 -0700 ·
quoted from Michael Baydoun

On Fri, May 2, 2014 12:22 pm, Michael Baydoun wrote:
Running version 4.3.17

The time on the server itself is correct.  The time on in the upper right
corner of the nongreen.html and main screen xymon.html is correct.  The
time on most other pages is 4 hours ahead, which happens to be the current
difference between EDT and UTC time.

Any idea why and how to fix?

All I can think of is that the remaining pages are CGI's, meaning they're
running via Apache, while the xymongen program which creates the static
HTML pages is running as the xymon user via an initscript. It's possible
the time environment is listed different between the two somehow.

Perhaps compare the /proc/*/environ files to see if TZ is different, or
bounce apache and see if it fixes it.

If not, a bounce? Hard to say...

HTH,
-jc
list Michael Baydoun · Mon, 5 May 2014 10:00:48 -0400 ·
fixed this by creating a timezone.conf in /etc/httpd/conf.d with the
following contents

SetEnv TZ America/New_York
quoted from Japheth Cleaver


On Fri, May 2, 2014 at 5:24 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid> wrote:
On Fri, May 2, 2014 12:22 pm, Michael Baydoun wrote:
Running version 4.3.17

The time on the server itself is correct.  The time on in the upper right
corner of the nongreen.html and main screen xymon.html is correct.  The
time on most other pages is 4 hours ahead, which happens to be the
current
difference between EDT and UTC time.

Any idea why and how to fix?

All I can think of is that the remaining pages are CGI's, meaning they're
running via Apache, while the xymongen program which creates the static
HTML pages is running as the xymon user via an initscript. It's possible
the time environment is listed different between the two somehow.

Perhaps compare the /proc/*/environ files to see if TZ is different, or
bounce apache and see if it fixes it.

If not, a bounce? Hard to say...

HTH,
-jc