When zooming graphs, showed period is not corresponding to zoomed area.
ie: if i want to zoom from 12:00 pm to 12:00 am, i will see graph from 1:40pm - 1:40 am
image attached.
cacti 088a - default installation
[SOLVED] Zoom area not working correct (with RRDTool 1.4.5)
Moderators: Developers, Moderators
[SOLVED] Zoom area not working correct (with RRDTool 1.4.5)
- Attachments
-
- 1.png (55.89 KiB) Viewed 2673 times
Last edited by seco on Tue May 15, 2012 2:58 am, edited 1 time in total.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Zoom area not working correct
Which timezone settings are applied to php, please?
R.
R.
Re: Zoom area not working correct
http://cacti/utilities.php?action=view_tech
FreeBSD cacti-57 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Mar 27 09:14:02 EEST 2012
# date
Mon May 14 09:58:01 EEST 2012
# php -v
PHP 5.3.10 with Suhosin-Patch (cli) (built: Mar 27 2012 13:11:52)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
# cat ./php.ini | grep timezone
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
date.timezone = "Europe/Bucharest"
Error logs from web server are clear.
# uname -adate
date/time support enabled
"Olson" Timezone Database Version 2011.14
Timezone Database internal
Default timezone Europe/Bucharest
Directive Local Value Master Value
date.timezone Europe/Bucharest Europe/Bucharest
FreeBSD cacti-57 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Mar 27 09:14:02 EEST 2012
# date
Mon May 14 09:58:01 EEST 2012
# php -v
PHP 5.3.10 with Suhosin-Patch (cli) (built: Mar 27 2012 13:11:52)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
# cat ./php.ini | grep timezone
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
date.timezone = "Europe/Bucharest"
Error logs from web server are clear.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Zoom area not working correct
running Europe/berlin, this works perfectly for me
Asking our tz specialist ...
R.
Asking our tz specialist ...
R.
- browniebraun
- Developer
- Posts: 791
- Joined: Tue Jun 13, 2006 1:17 am
- Location: Cologne, Germany
Re: Zoom area not working correct
From my point of view you're using a buggy version of RRDtool. I assume it is RRDtool v1.4.5 that you're using.
The distance between the graph area and the right graph border is different (smaller) than usual. The zoom code itself will always calculate the different timestamps by using a fixed value for that distance.
Try to use another RRDtool version to verify that. (e.g. RRDtool 1.4.7)
Regards
-Andi
The distance between the graph area and the right graph border is different (smaller) than usual. The zoom code itself will always calculate the different timestamps by using a fixed value for that distance.
Try to use another RRDtool version to verify that. (e.g. RRDtool 1.4.7)
Regards
-Andi
Hat das Blümchen einen Knick, war der Schmetterling zu dick!
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
Re: Zoom area not working correct
System (FreeBSD 9.0-RELEASE) was compiled @ Tue Mar 27 09:14:02
RRDTool was build from FreeBSD ports
At that moment in FreeBSD port tree actual version of RRDTOOL was:
> Revision 1.44: download - view: text, markup, annotated - select for diffs
> Fri Feb 4 10:20:53 2011 UTC (15 months, 1 week ago) by sylvio
and only 7 days ago this port was updated (to RRDTOOL 1.4.7)
> Revision 1.45: download - view: text, markup, annotated - select for diffs
> Mon May 7 18:51:01 2012 UTC (7 days, 12 hours ago) by sylvio
> Diff to: previous 1.44: preferred, colored
> Changes since revision 1.44: +2 -2 lines
> - Update to 1.4.7
http://www.freebsd.org/cgi/cvsweb.cgi/p ... l/distinfo
OK, lets try to update FreeBSD ports tree and RRDtool package:
After that zooming worked well.
Thanks a lot!
RRDTool was build from FreeBSD ports
Code: Select all
# pkg_info | grep rrdtool
rrdtool-1.4.5 Round Robin Database Tools
# rrdtool -v
RRDtool 1.4.5 Copyright 1997-2010 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Mar 28 2012 15:05:16
> Revision 1.44: download - view: text, markup, annotated - select for diffs
> Fri Feb 4 10:20:53 2011 UTC (15 months, 1 week ago) by sylvio
and only 7 days ago this port was updated (to RRDTOOL 1.4.7)
> Revision 1.45: download - view: text, markup, annotated - select for diffs
> Mon May 7 18:51:01 2012 UTC (7 days, 12 hours ago) by sylvio
> Diff to: previous 1.44: preferred, colored
> Changes since revision 1.44: +2 -2 lines
> - Update to 1.4.7
http://www.freebsd.org/cgi/cvsweb.cgi/p ... l/distinfo
OK, lets try to update FreeBSD ports tree and RRDtool package:
Code: Select all
# portsnap fetch update
Updating from Fri Apr 13 10:12:26 EEST 2012 to Tue May 15 09:45:14 EEST 2012.
# /usr/libexec/locate.updatedb
# portupgrade -R rrdtool-1.4.5
# rrdtool -v
RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker <tobi@oetiker.ch>
Compiled May 15 2012 10:47:56
Thanks a lot!
Who is online
Users browsing this forum: No registered users and 0 guests