[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] The time shown by hobbitsvc.cgi generated pages
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] The time shown by hobbitsvc.cgi generated pages
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Tue, 1 Jun 2010 22:08:38 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=oRG9m5AkeKwNSPNmd6MwKWwomsZLhKFm/BoLjMz8t58=; b=femdHhGNDy38/tA9Hy7/U4OOoCyB2DC9sQETVRwITw346lJ+GWZsm1UX5+RINl/6EO RkIEr0M5YjpfJZvCuw4C57ddRtkjsguXJPiH0jfjR/LutFdK0vzJK3kzgw+5z58SSxub 71lm9U8CfBUqBKBN43A0yaH4bJeZyUCzQj2eE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YBLQYtrThkwXV38u16lLAYPJ7t4XtvX7g83h7670roR6oxrsQ/ckjIeQ5EJTqMmtGJ d8KjPbAqekNxlfXFcsHlNYETA45cZEMSldnnFNAc6CHDGcfS1T+OlS2NpqVmFC9fZqk+ Sb4w1hJP7spzNWSElZ1lKrf67YVFzp+XfpVZM=
- References: <AANLkTilA5AHTlhsK9pfgUrpEtG8EW0kXMV5SrWHcbytN (at) mail.gmail.com>
On Tue, Jun 1, 2010 at 12:40 PM, Steve Holmes <sholmes42 (at) mac.com> wrote:
> I've been searching the archives for this and can't even figure out what to
> search for, really, so sorry if I missed something.
> I'm running Xymon 4.2.3 on Solaris 10.
> We are in the EST time zone. The pages generated by Xymon for all but the
> detail pages which are generated by hobbitsvc.cgi have the correct time
> displayed at the top. All pages generated by hobbitsvc.cgi as well as the
> times shown on all of the graphs are four hours in the future (presumably
> UTC?).
>
> I would like to know how to fix this little problem. Everything else (well
> almost) is working great
>
Is it possible your web server started up before the system timezone was
set?? That's the only thing that springs to mind. I'm fairly sure Xymon
doesn't have a timezone builtin, so it's using the system timezone when it
generates (most of) the pages. The pages generated by cgi would pick up the
timezone setting the web server was started with, I think. You could test
that by dropping this shell script into your servers regular cgi-bin
directory:
#!/bin/bash
echo "Content-type: text/plain"
echo ""
date
When I go to http://myserver.domain.com/cgi-bin/date, I get back a page
with:
Tue Jun 1 22:02:37 EDT 2010
and the time now in Virginia Beach is indeed 10:02pm.
Ralph Mitchell