<br><br><div class="gmail_quote">On Tue, Jun 1, 2010 at 10:08 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jun 1, 2010 at 12:40 PM, Steve Holmes <span dir="ltr"><<a href="mailto:sholmes42@mac.com" target="_blank">sholmes42@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


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.<div>I'm running Xymon 4.2.3 on Solaris 10. </div><div>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?). </div>




<div><br></div><div>I would like to know how to fix this little problem. Everything else (well almost) is working great</div></blockquote><div><br></div></div></div><div>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:<br>


</div><div><br></div><div>     #!/bin/bash</div><div><br></div><div>     echo "Content-type: text/plain"</div><div>     echo ""</div><div>     date</div><div><br></div><div>When I go to <a href="http://myserver.domain.com/cgi-bin/date" target="_blank">http://myserver.domain.com/cgi-bin/date</a>,  I get back a page with:</div>


<div><br></div><div>     Tue Jun  1 22:02:37 EDT 2010</div><div><br></div><div>and the time now in Virginia Beach is indeed 10:02pm.</div><div><br></div><font color="#888888"><div>Ralph Mitchell</div></font></div>
</blockquote></div><div><br></div>Bingo. Thank you. All I had to do was put a .htaccess file in the xymon/cgi-bin directory with<div><br></div><div>SetEnv TZ US/East-Indiana</div><div><br></div><div>restart apache, and it magically got the right time. I was just assuming that it was something I was missing in the Xymon configuration.</div>

<div><br></div><div>Thanks again.</div><div>Steve</div><div><br>-- <br>The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)<br>

<br>Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) <br>
</div>