Cool zoom/history feature for cacti :)

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

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

Post by Bruno Prigent »

Can you tell me how the parameters register_globals, register_argc_argv of php.ini file are configured
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

Bruno Prigent wrote:Can you tell me how the parameters register_globals, register_argc_argv of php.ini file are configured
register_globals = Off
register_argc_argv = On


Hope this helps,

- D
Guest

Post by Guest »

A new release which corrects the bug with undefined variable due to php.ini configuration (register_globals = Off) is available at http://linkdown.org/download/cactistori ... .02.tar.gz
Justler
Posts: 12
Joined: Tue Oct 28, 2003 1:52 pm

Post by Justler »

Works like a champ! Thanks!
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

It works great.. Thanks..

I think I'm having another issue, don't really know if it's just me or what.

I get an error message in my apache 'error_log' file:

Code: Select all

 ERROR: the first entry to fetch should be after 1980
It also generates this entry in the apache 'access_log' file:

Code: Select all

192.168.1.168 - - [10/Dec/2003:16:50:45 +0100] "GET /cacti/cactistoric.php?local_graph_id=106&rra_id=4 HTTP/1.1" 200 18583
192.168.1.168 - - [10/Dec/2003:16:50:46 +0100] "GET /cacti/graph_image.php?local_graph_id=106&rra_id=4&graph_start=1070985045&graph_end=1071071445&graph_height=192&graph_width=800 HTTP/1.1" 200 11589
no graph is generated by cactistoric.
The error it's generated as soon as I click on 'zoom'.

The weird thing is that it only happends with some graphs.
I don't really know what to make of it.
If anyone else runs into this please let me know...
Thanks.

- D
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

I'm facing the same problem here, some graphs won't show up when clicking on 'zoom'. I'm using PHP 4.3.3 with

Code: Select all

register_globals = Off
php.ini:register_argc_argv = On
Regards,

Frédéric Mangeant
Guest

Post by Guest »

I guess this version of cactistoric it's not ready. What a shame, cacti and cactistoric go so well together.

RaX, you should consider blundleing cactistoric with future versions of cacti.
Well, after the compatibilities have been taken cared of..


God Bless,

Art Vans
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

diegov wrote:It works great.. Thanks..

I think I'm having another issue, don't really know if it's just me or what.

I get an error message in my apache 'error_log' file:

Code: Select all

 ERROR: the first entry to fetch should be after 1980
It also generates this entry in the apache 'access_log' file:

Code: Select all

192.168.1.168 - - [10/Dec/2003:16:50:45 +0100] "GET /cacti/cactistoric.php?local_graph_id=106&rra_id=4 HTTP/1.1" 200 18583
192.168.1.168 - - [10/Dec/2003:16:50:46 +0100] "GET /cacti/graph_image.php?local_graph_id=106&rra_id=4&graph_start=1070985045&graph_end=1071071445&graph_height=192&graph_width=800 HTTP/1.1" 200 11589
no graph is generated by cactistoric.
The error it's generated as soon as I click on 'zoom'.

The weird thing is that it only happends with some graphs.
I don't really know what to make of it.
If anyone else runs into this please let me know...
Thanks.

- D
While playing around trying to find the cause of this issue. I noticed the graphs will zoom fine with " Interface - Traffic (bytes/sec)" graph template.
If I pick 95th percentile or total bandwidth it just won't work.

Hope this helps!

Cheers,

Diego Vargas
Guest

fix for cactistoric

Post by Guest »

Hi,

I also had problems with the latest version of cactistoric.

I had a quick look at lib/rrd.php, I don't exactly know, whether the changes I have made are correct for the functioning of this all, as I didn't look at the overall functioning of the application, but the values/graphs I get seem to be fine.

I have made the following changes:

Code: Select all

lib/rrd.php, line 277, insert this line:
// 946681200 = 1.1.2000 00:00:00
$start_seconds = ($seconds < 946681200) ? "-$seconds" : $seconds;

a couple of lines later, change
$command = "fetch $data_source_path AVERAGE -r $seconds -s -$seconds -e now"; 

to

$command = "fetch $data_source_path AVERAGE -r $seconds -s $start_seconds -e now";

philipp
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Re: fix for cactistoric

Post by diegov »

Anonymous wrote:Hi,

I also had problems with the latest version of cactistoric.

I had a quick look at lib/rrd.php, I don't exactly know, whether the changes I have made are correct for the functioning of this all, as I didn't look at the overall functioning of the application, but the values/graphs I get seem to be fine.

I have made the following changes:

Code: Select all

lib/rrd.php, line 277, insert this line:
// 946681200 = 1.1.2000 00:00:00
$start_seconds = ($seconds < 946681200) ? "-$seconds" : $seconds;

a couple of lines later, change
$command = "fetch $data_source_path AVERAGE -r $seconds -s -$seconds -e now"; 

to

$command = "fetch $data_source_path AVERAGE -r $seconds -s $start_seconds -e now";

philipp

This worked for me!

Thanks,

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

Post by Bruno Prigent »

A release correcting this problem is available at http://linkdown.org/download/cactistori ... .03.tar.gz
Try it and tell me if everything is fine.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Works fine for me.
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

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

Post by fmangeant »

In fact, I have still one small problem... :(

If, when zooming, I choose :
- end day = start day
- end time = start time + 2 (for example, start = 10 and end = 12)

I don't get the graph, but :

Code: Select all

ERROR: start (1071500411) should be less than end (1071493120)
in my error_log.

Is it possible to zoom on, for example, 1 hour ?

Regards,

Frédéric Mangeant
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

fmangeant wrote:In fact, I have still one small problem... :(

If, when zooming, I choose :
- end day = start day
- end time = start time + 2 (for example, start = 10 and end = 12)

I don't get the graph, but :

Code: Select all

ERROR: start (1071500411) should be less than end (1071493120)
in my error_log.

Is it possible to zoom on, for example, 1 hour ?

Regards,

Frédéric Mangeant

On which graph?
Dailly, Weekly, Monthy or Yearly.

This is very important. If you want to see 5 minutes of average data, you will need to zoom on the dailly graph.

You can always resize the rrd file with the 'rrdtool resize' command.

Good luck,

Diego Vargas
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests