[rrd-users] How to shift an entire graph

Tobias Oetiker tobi at oetiker.ch
Mon Nov 22 07:58:12 CET 2010

Hi Ben,

Today Balen, Ben van wrote:

> Hi,
> I'm investigating displaying graphs for different timezones than
> their data was collected in. For example, if the data is
> collected in GMT and the user selects CET (GMT+1) for displaying
> the graph, I want all graph data to shift +1 hour.
> As far as I can see the only way of doing this is shifting each
> individual vname in a graph using the SHIFT instruction
> (http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html). This
> does involve quite some programming if there is a fairly large
> number of variables.
> Is there another (easier) way of shifting all graph data?

just set the TZ variable appropriately prior to calling rrdtool
graph and all should be taken care of ...

internally rrdtool works in gmt anyway ...


Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-users mailing list