[rrd-users] Re: Local time zone
Robert Heber
rheber at nawias.pl
Fri Nov 21 13:15:47 MET 2003
Hi,
this file I've renamed to graphs/Makefile.
I put there $ENV{'TZ'} = "GMT"; and generated
a new bunch of graphs, but they looks the same.
> as far as I know changing to GMT or to any
> other timing should happen when we read the RRD to
> create the graph ?.not when we put data into it.....
Hmmm... I was convinced that data (time values) in RRD file
are already wrong, and the graphs are generated straight from
it. All the mess is because of time change to the winter one
(we back the timers in last sunday of october). I've checked
timestamps in flow exporters (routers) - there time is good
(I mean the same as local because of ntp), then I've checked
time in flow-tools files and there time is also good. There
data is splited to the flowscan and sql database (good times).
At the end of flowscan process are graphs and there time is
wrong, but I do not exactly know what is in his rrdfiles -
I've blamed flowscan to compute time to non-local TZ.
To check rrdfiles I've composed this cgi script, but its
output (online generated sample graph) has also wrong time:
#!/usr/local/rrdtool-1.0.42/bin/rrdcgi
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<title>STATISTIC</title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta http-equiv="Refresh" content="60; URL=pasmo.cgi">
</HEAD>
<BODY bgcolor="#084294">
<CENTER>
<P>
<RRD::GRAPH /var/www/images/sample.png
--imginfo '<IMG SRC=/images/%s>'
--title="Bandwidth in/out (last hour)"
--width '640'
--height '180'
--start -4h
-g
DEF:A=/usr/local/arts/flow6/graphs/my_data_file.rrd:out_bytes:AVERAGE
DEF:B=/usr/local/arts/flow6/graphs/my_data_file.rrd:in_bytes:AVERAGE
CDEF:AA=A,8,*,1,*
CDEF:AB=B,8,*,-1,*
AREA:AA#0000FF:"OUT"
AREA:AB#008F00:"IN">
</P>
So I'm stuck, I do not know what else should I change to correct TZ.
Or maybe this is a simple error from myself... BTW, do you know how
to apply $ENV{'TZ'} = "GMT"; in this cgi script ?
Robert
Użytkownik Chitman Kaur napisał:
> Hi
> I am also using flowscan with JKFlow...
> In the JKGrapher.pl... if we put $ENV{'TZ'} = "GMT"; in the beginning
> of the script then the timings of the graph comes in GMT....
> Since you are using CampusIO then you need to search which file makes
> the graphs.... I think its graph.mf (I am not sure)... so put this
> line in the beginning of graph.mf (if that?s the file) ....
> You don't need to put it in pm files.... as far as I know changing to
> GMT or to any other timing should happen when we read the RRD to
> create the graph ?.not when we put data into it.....
> Chitman
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list