Cool zoom/history feature for cacti :)

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I tried to zoom on daily graphes, with the following RRA :

Code: Select all

X-Files Factor = 0.5
Steps = 1
Rows = 51840
Timespan = 86400
to keep 6 months of 5 minutes average.

I've also tried with the "original" daily RRA (600 rows) with no luck.

On another server w/ cacti 0.8.4 and cactistoric 0.8.4-0.0.1 I can zoom (on daily graph) on a 1 hour interval of time.
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

As you can see on the attachement, I can zoom on 1 hour. Note the generated timestamp.
Can you give me a real life start/end example which results in an error ?
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

more of a feature request

Post by egarnel »

For some reason, I was under the impression that the zoom feature would be
part of the graph itself, ala nmis style. http://www.sins.com.au/nmis/

Any plans to add this later? It really is a cool feature

Anyway, cactihistoric is a great addon to cacti.
Guest

Post by Guest »

fmangeant wrote:I tried to zoom on daily graphes, with the following RRA :

Code: Select all

X-Files Factor = 0.5
Steps = 1
Rows = 51840
Timespan = 86400
to keep 6 months of 5 minutes average.

I've also tried with the "original" daily RRA (600 rows) with no luck.

On another server w/ cacti 0.8.4 and cactistoric 0.8.4-0.0.1 I can zoom (on daily graph) on a 1 hour interval of time.

Can we re-visit this issue, I'm still having problems displaying graphs.

I still get the error bellow everytime I try to gereraate a graph with dates older than 10 to 12 days.

Code: Select all

ERROR: start (1072087291) should be less than end (1070277480)
I can get a graph for an hour time frame only for the current day.

If anyone is having the same issue please let me know. Maybe there is an easy fix to this.

This is the formula I use in excel to convert unix time to a readable format:

Code: Select all

=((A1+((365*70+19)*86400))/86400)-0.41667
Make sure you format the field as MM/DD/YY HH:MM:SS

Thanks in advance,

Diego Vargas
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

Does the timestamps returned in error matchs the start and end date you entered in cactistoric form ? Can you post the values ?
How many rows did you configured in cacti for the daily rra ?
Does you'r rra files have the same rows number than configured in cacti ?
You can also use this command to convert timestamp to readable date :

Code: Select all

date -d "00:00:PUT_TIMESTAMP_HERE 1970-01-01 UTC"
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi Bruno

here's a example of errors I get :
- I try to zoom from Dec 23, 11h00 to Dec 23, 13h00 on a daily graph
- this result in

Code: Select all

ERROR: start (1072680424) should be less than end (1072180800)
- the timestamp for the start doesn't match the one I choose :

Code: Select all

$ date -d "00:00:1072680424 1970-01-01 UTC"          (start)
Mon Dec 29 07:47:04 CET 2003
$ date -d "00:00:1072180800 1970-01-01 UTC"          (end)
Tue Dec 23 13:00:00 CET 2003
- this daily RRA has 51840 rows, so does the .rrd :

Code: Select all

$ rrdtool info file.rrd | grep -B 1 rows
rra[0].cf = "AVERAGE"
rra[0].rows = 700
--
rra[1].cf = "AVERAGE"
rra[1].rows = 775
--
rra[2].cf = "AVERAGE"
rra[2].rows = 51840
--
rra[3].cf = "AVERAGE"
rra[3].rows = 797
--
rra[4].cf = "MAX"
rra[4].rows = 700
--
rra[5].cf = "MAX"
rra[5].rows = 775
--
rra[6].cf = "MAX"
rra[6].rows = 51840
--
rra[7].cf = "MAX"
rra[7].rows = 797
Thanks for your help.
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

It's seems I have problems with rrdtool which calculate wrong start timestamp. I'm looking for help from rrdtool users mailing list.
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

I should RTFM :)
The start parameter in rrdtool is relative to current time. I think have corrected the problem in the new release available at http://linkdown.org/download/cactistori ... .04.tar.gz
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Thanks Bruno.

There seems to be a problem with the cactistoric.php file (contained in the cactistoric.tar.gz archive) :

Code: Select all

$ file cactistoric.php
cactistoric.php: gzip compressed data, from Unix
$ gunzip cactistoric.php
$ file cactistoric.php
cactistoric.php: POSIX tar archive
$ tar tvf cactistoric.php
-rw-r--r-- cacti/cacti    4455 2003-12-06 15:20:06 graph.php
-rw-r--r-- cacti/cacti    3153 2003-12-06 15:20:18 graph_image.php
drwxr-xr-x cacti/cacti       0 2003-12-10 21:06:36 include/
-rw-r--r-- cacti/cacti    7774 2003-12-06 15:20:30 include/config_arrays.php
drwxr-xr-x cacti/cacti       0 2003-12-10 21:06:36 lib/
-rw-r--r-- cacti/cacti   69923 2003-12-06 15:20:44 lib/functions.php
-rw-r--r-- cacti/cacti   38451 2003-12-30 12:18:09 lib/rrd.php
-rw-r--r-- cacti/cacti   26671 2003-12-30 12:16:34 ../cactistoric.tar.gz
$ tar xvf cactistoric.php
graph.php
graph_image.php
include/
include/config_arrays.php
lib/
lib/functions.php
lib/rrd.php
../cactistoric.tar.gz
tar: ../cactistoric.tar.gz: Member name contains `..'
tar: Error exit delayed from previous errors
I had to use :

Code: Select all

$ tar zxvfP cactistoric.php
graph.php
graph_image.php
include/
include/config_arrays.php
lib/
lib/functions.php
lib/rrd.php
../cactistoric.tar.gz
to extract the cactistoric.php file (with GNU tar 1.13.25).

Anyway, zooming on 1 hour works now :D

Cheers,

Frédéric Mangeant
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

I may have typed a wrong command. May be the consequence of my week end abuses :D
The archive has been updated.

Thanks you Frederic
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
Finally I set up my new linux box. RH7.3 cacti and cactistoric 8.4 (last versions)
But, my problem still exists:
My graph turns 30 min average value every 1 of 5 poll. I mean, every 30 min. my graph changed.
I want to shoe you this problem in attachment. I wait new cactistoric but nothing change about this problem. Have you any study about it?
My rows =17280
Attachments
Before
Before
15_44.jpg (69.24 KiB) Viewed 3935 times
after
after
16_01.jpg (66.39 KiB) Viewed 3936 times
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

Hi,

I already noticed this problem on a previous cacti box (cacti 0.6.8 and Redhat 7.3). I think this problem also appears when using the graph_view.php page, so the problem may be comes from rrdtool.
Since I moved to a Debian machine with cacti 0.8.4, this problems doesn't exists (for the moment).

If somebody have this problem or more informations, report ...

Bruno
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

RH 7.3 is a cause for this problem??
I have cacti 0.8.4 and RH 7.3
What is your rrdtool vesion? Mine is 1.0.35
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

I don't know if this is due to RedHat, I just said that since I change to another machine running Debian I didn't notice this problem. I changed the machine, the distrib and the polling base so everything changed :lol:
I'm using RRDtool 1.0.45
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Bruno Prigent wrote:I don't know if this is due to RedHat, I just said that since I change to another machine running Debian I didn't notice this problem. I changed the machine, the distrib and the polling base so everything changed :lol:
I'm using RRDtool 1.0.45
Did you change rrdtool in new machine?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests