Displayed Timestamps on the web interface

Ethan Galstad nagios at nagios.org
Wed Aug 11 05:30:36 CEST 2004


Sounds like the time isn't being written to or read from PostgreSQL 
correctly.  I no longer have a PostgreSQL server setup, so I can't 
test this easily.  Is anyone else able to test this?

On 5 Aug 2004 at 10:42, Fiederling, Daniel wrote:

> Hi list,
> 
> I've already posted this to the Users-List, but there where no
> answers. Perhaps you can help:
> 
> ----------------------------------------------------------------------
> ------ --- I have Nagios running for about 4 weeks and I really like
> it and there is the plan to substitue BigBrother with Nagios. But
> there is one problem with the web interface: the timestamps displayed
> are wrong (for example in extinfo.cgi). They are always +2h. The
> timestamp display in "Current Network Status" / Last Updated (the box
> in the upper left) is correct.
> 
> I have found some questions about that issue in the list archive but
> no answers. The FAQ says nothing about timezones / wrong timestamps.
> Can anybody help me?
> 
> My system is a SuSE 8.2 box with Nagios 1.2 (2004-02-02). My system
> time is local time (CEST), synchronized with xntp to our main time
> server. I use PostgreSQL for data storage. The timestamps in the
> database are displayed correct with psql - maybe psql adjusts the
> display to the current timezone, I don't know.
> 
> I think, GMT is our local time - 2h, or in other words CEST is GMT+2
> (not sure about that!). I don't know if that's a hint to the problem.
> ----------------------------------------------------------------------
> ------ ---
> 
> In the meantime I tried to alter the function get_time_string() in
> cgiutils.c, without success. I think that timestamps read from the
> database are thought as being UTC but they are already CEST. The
> localtime()-call in cgiutils.c adds 2h and I get the wrong times on
> the web interface. Any tipps for me?
> 
> Please help me!
> Daniel
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes
> on Linux.com, ITManagersJournal and NewsForge in the past few weeks?
> Now, one more big change to announce. We are now OSTG- Open Source
> Technology Group. Come see the changes on the new OSTG site.
> www.ostg.com _______________________________________________
> Nagios-devel mailing list Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285




More information about the Developers mailing list