BBWin [file:] and epoch time

McGraw, Robert P rmcgraw at purdue.edu
Mon Jun 23 20:06:14 CEST 2008


I have the [file:] set up in central mode on our BBWin V.12 client and it
returns the following client data to the Hobbit server. 

	[file:c:\Alligate\AAATEST]
	type:0x00020 (file)
	mode:777 (not implemented)
	linkcount:1
	owner:0 (not implemented)
	group:0 (not implemented)
	size:0
	atime:1214222069 (2008/06/23-11:54:29)
	ctime:1213796626 (2008/06/18-13:43:46)
	mtime:1214222069 (2008/06/23-11:54:29)

On my hobbit server hobbit-clients.cfg I have 

	FILE c:\Alligate\AAATEST red MTIME<88200

The YYYY/MM/DD-HH:MM:SS atime, ctime and mtime are local time.

During testomg I noticed that the red icon would come on before I had
expected.

I decided to do a little checking and using the epoch time calculator at 
http://www.esqsoft.com/javascript_examples/date-to-epoch.htm.

If I enter 2008/06/23-11:54:29 it returns the epoch time of 1214236469,
which does not match mtime epoch time above.

If I enter the epoch mtime 1214222069 I get Mon Jun 23 2008 07:54:29
GMT-0400 (EDT) which does not match the date.

If I enter epoch time 1214236469 I get Mon Jun 23 2008 11:54:29 GMT-0400
(EDT)

Things seem to be off 4 hours. It seems that the YYYY/MM/DD-HH:MM:SS time is
local but the epoch time is GMT. 

Do other seem this or am I looking at this wrong.

Thanks

Robert





--------------------------------------------------------------------
Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: rmcgraw at purdue.edu
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (765) 494-6055
150 N. University Street                                               
West Lafayette, IN 47907-2067            

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3105 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080623/dfde9979/attachment.bin>


More information about the Xymon mailing list