Xymon Mailing List Archive search

silly-a** question on hobbit, timezones, and the dread purple status

4 messages in this thread

list Tom Kauffman · Wed, 8 Mar 2006 13:08:36 -0500 ·
My hobbit server is in Indiana (US) and we've just decided to start
doing the 'change the clock twice a year' shtick again. Do I need to
worry about what alerts we'll get when the time shifts by an hour, twice
a year? Or does hobbit walk the status messages and re-date them when
the shift occurs?

TIA

Tom Kauffman
NIBCO, Inc
CONFIDENTIALITY NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive  attorney-client or work product privilege by the transmission of this
message.
list Larry Barber · Wed, 8 Mar 2006 12:20:51 -0600 ·
The purple status relies on the mod time of the status file, which uses the
Unix sytem time of seconds since the "epoch" so it shouldn't be affected by
the time zone or daylight savings time.

Thanks,
Larry Barber
quoted from Tom Kauffman

On 3/8/06, Kauffman, Tom <user-3feba9e60a8b@xymon.invalid> wrote:
My hobbit server is in Indiana (US) and we've just decided to start
doing the 'change the clock twice a year' shtick again. Do I need to
worry about what alerts we'll get when the time shifts by an hour, twice
a year? Or does hobbit walk the status messages and re-date them when
the shift occurs?

TIA

Tom Kauffman
NIBCO, Inc
CONFIDENTIALITY NOTICE:  This email and any attachments are for the
exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in
reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this
message.

list Tom Kauffman · Wed, 8 Mar 2006 13:42:45 -0500 ·
Thanks, Larry - I thought it wan't an issue, I just couldn't remember
why.

 
One less problem on a problematic day!

 
Tom

 
From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid] Sent: Wednesday, March 08, 2006 1:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] silly-a** question on hobbit, timezones, and the
dread purple status
quoted from Larry Barber

 
The purple status relies on the mod time of the status file, which uses
the Unix sytem time of seconds since the "epoch" so it shouldn't be
affected by the time zone or daylight savings time. 
Thanks,
Larry Barber

On 3/8/06, Kauffman, Tom <user-3feba9e60a8b@xymon.invalid> wrote:

My hobbit server is in Indiana (US) and we've just decided to start
doing the 'change the clock twice a year' shtick again. Do I need to
worry about what alerts we'll get when the time shifts by an hour, twice
a year? Or does hobbit walk the status messages and re-date them when the shift occurs?

TIA

Tom Kauffman
NIBCO, Inc
CONFIDENTIALITY NOTICE:  This email and any attachments are for the
exclusive and confidential use of the intended recipient.  If you are
not
the intended recipient, please do not read, distribute or take action in

reliance upon this message. If you have received this in error, please
notify us immediately by return email and promptly delete this message
and its attachments from your computer system. We do not waive
attorney-client or work product privilege by the transmission of this message.


CONFIDENTIALITY NOTICE:  This email and any attachments are for the exclusive and confidential use of the intended recipient.  If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive  attorney-client or work product privilege by the transmission of this
message.
list Henrik Størner · Wed, 8 Mar 2006 21:41:44 +0100 ·
quoted from Larry Barber
On Wed, Mar 08, 2006 at 12:20:51PM -0600, Larry Barber wrote:
On 3/8/06, Kauffman, Tom <user-3feba9e60a8b@xymon.invalid> wrote:
My hobbit server is in Indiana (US) and we've just decided to start
doing the 'change the clock twice a year' shtick again. Do I need to
worry about what alerts we'll get when the time shifts by an hour, twice
a year? Or does hobbit walk the status messages and re-date them when
the shift occurs?
The purple status relies on the mod time of the status file, which uses the
Unix sytem time of seconds since the "epoch" so it shouldn't be affected by
the time zone or daylight savings time.
That's not *quite* right, but the end result is the same.

Hobbit doesn't maintain any kind of status in files the way BB does.
What Hobbit does is to keep a timestamp in memory - but the effect 
is the same. All of these timestamps are in the Unix "epoch" format,
and therefore they are independent of what the local time may be. 

(This is definitely one thing the Unix designers got right - storing
time in a format which depends on your location, and then trying to
compare them across multiple systems, is bound to fail. The only
sane way of doing that is to use a location-independent counter, and
the Unix time_t epoch thing is exactly that. The POSIX guys then
goofed badly on the issue of leap seconds, but we'll have to live
with that).


Regards,
Henrik