Cool zoom/history feature for cacti :)

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
artoo

Post by artoo »

Firstly, this is an excellent addon, it will fill a huge gap for software that I have been looking for.

So far I have it working *perfectly* on 10/11 of my graphs, unfortunatly, when i try to view the default generated graphs for my net-snmp watch interface traffic, it does not work. Going to view source, I get the following errors.

Notice: Undefined offset: 8 in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 399

Notice: Undefined offset: 8 in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 403

Notice: Undefined offset: 8 in /var/www/localhost/htdocs/cacti/lib/rrd.php on line 407


Any help would be much appreaciated.
Guest

Post by Guest »

when zooming, does the addon always use the 5min data, or should I increase the rows i'm keeping for the other RRAs as well?
ezcuzi
Posts: 1
Joined: Sat Jun 26, 2004 1:03 pm

Post by ezcuzi »

Thanks for this great addon
[img]http://img20.imageshack.us/img20/9846/afiche.jpg[/img],
fletch
Cacti User
Posts: 132
Joined: Mon Oct 06, 2003 5:40 pm
Location: Stanford, CA

july 1 - blank zoom view

Post by fletch »

Its July 1 today

This morning all of my zoom views are coming up blank.
cacti0.8.5a - Solaris9

been working fine for months - just started coming up blank this morning.
Data is there in the unzoomed views.

I noticed its coming up with a date range of Jul 30 - Jul 1 - which is not valid of course! - is there an update to fix this?

how do I tell if I have the latest zoom code?
Where do I go for zoom code updates? (attachments to the forum? )


Thanks!
fletch
Cacti User
Posts: 132
Joined: Mon Oct 06, 2003 5:40 pm
Location: Stanford, CA

update fixed the blankness

Post by fletch »

Got the latest version from:

http://linkdown.org/download/cactistori ... .04.tar.gz

fixed!
Didier

Zoom several graph at the same time

Post by Didier »

Hello,

I have tried to improve Cactistoric to be able to zoom several graphs at the same time. Join is some modified code based on release cactistoric-0.8.5-0.04 (http://linkdown.org/downloads.php?lng=english)

With this modified version in the Tree and Preview modes you can zoom on all the graphs displayed from the period of time you want.
(See some jpg files in the tar file to have a view of it)

I think in this way it will be easier to compare many graphs.
What about it integrating it in Cactistoric in the future release ?

Didier
Attachments
cacticstoric-modified-0.8.5-0.04-archive.tar.gz
(142.46 KiB) Downloaded 406 times
Guest

Post by Guest »

Hi,

does it works when user choose the single pane view ?

Bruno
Didier

About modified version of Cacti ==> answer to Guest

Post by Didier »

About modified verion of Cacti ==> answer to Guest
=================================

If you are talking the "modified version of cacti to display zoom on multiple graphs" I think so.

The change I have done, in each fucntion where I've seen a graph is displayed
- I have put the selection box for the period of graphing
- I have updated the parameter passed in order to have start and end of graphing reflectng to the selection
I have developed it from my home on my Windows XP computer


Sure, we are never enough secure, before changing the files by those included in this tar.gz, I recommand you to save the files aside.

Has anybody succeded to make it work ?
If standard catistoric works (and it is the last version), I think it should

Didier
Didier

Some pictures about modified version of cactistoric:zoom

Post by Didier »

Some pictures about modified version of cactistoric:zoom on several graphs at the same time
======================================

Hello,

This download is just some pictures of the modified version of Cacistoric (to display zoom on several graphs) to give you a look at what you will got.

NB: In the selection list mode (see image3a.jpg) , you won't see the "Weekly, Monthly, ..." combox box. I have removed them because I think with that they are useless. Nevertheless an improvement that can be done later by who want can be to display near the view button (on image 3b) another box to immediately select for instance
- the last 2 hours
- the last day
- the last week
- the last month
- the last year

Thanks again very much to Bruno PRIGENT for the very good add-on and idea he had by doing this add-on. I hope it will soon be included in the core package of cacti.

Didier
Attachments
Picture-Cactistoric-Modified-Archive.tar.gz
(145.18 KiB) Downloaded 407 times
Didier

FIX OF BUG in modified version of cactistoric:zoom on severa

Post by Didier »

modified version of cactistoric:zoom on several graphs at the same time
===============================================

A BUG HAS BEEN CORRECTED

Sorry for the bug mentioned by "Guest".
I have reproduced it, when we selected a host in the "Filter By" list on the preview dialog they was an error "document.form_graph_id.cbo_graph_id is not an object"

I have forgotten ending a "form"; at the end of the Graphing Period area.

Now it is corrected with the joined file graph_view.php
(rename graph_view.php.txt in graph_view.php)


Sorry again for this mistake

Didier
Attachments
graph_view.php.txt
(28.98 KiB) Downloaded 532 times
newuser

Post by newuser »

Hi

I asked a question here about having a rrd database with a single rra that collects 1 min data for a long period - for example a month. Using the original cacti it displays just one graph - for the whole period - a month. The point is for example to display 4 graph /hourly, daily, weekly, monthly/ using just that rrd /which has only ONE rra/..

By tweeking some code I managed to get two types of results:
1) only a single graph for a prefferable period or

2) all the desired number of graphs but they all show one and the same period

So the question is could this be achieved using Cactistoric?

10x :)[/url]
Didier

Answer having a rrd database with a single rra that collects

Post by Didier »

>> having a rrd database with a single rra that collects 1 min data

1) only a single graph for a prefferable period or
===> Yes when you click on zoom a separate window appears.
In this window you can choose the period yu want to display


2) all the desired number of graphs but they all show one and the same period
===> You cannot have multiple graph with a specific zoom in standard cactistoric. Try the modified version of cactistoric just above (my pseudo Didier). You have to do 2 download all the files + the bug fix I have published after
With this version you will see all the graphs you have selected, and all graph will show you the period you have selected (a unique period of time for all the graphs)


So you could have a single RRA, and display all the graphs I want.
I have imagined this modifications of cacatistoric beacuse I want to keep detailed for 1 year and be able to zoom on any period. So I plan to settle Cacti to have only 1 RRA with 5 min interval , its total size being to keepn data for 1 year.

Didier
Wojtek

different time periods but this same traffic values.

Post by Wojtek »

Hi, tnx for develop cactistoric.
I use cacti-0.8.5 with cactistoric-0.8.5-0.04 and i have problems with zooming traffic.
When i chose one hour from yesterday i got very nice graph with total out, total in. But if i chose then one hour form a day before yestrday i got new graph with the same total in, total out values.
It cannot be true because, graph charts are different.
Any idea how can i get correct total values.???
Best Regards.
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Default for Period of graphin ???

Post by Frodoger »

Hello,

how can i set an different default value for the "Period of graphing" ???
It shows now only 2hours and not 24. How can i change these value to default.
I found the cacti 24 hours default better.


Thanx for programming, these tool addon is nice.
Didier

Default for Period of graphin ??? - Answer to "Frodoger

Post by Didier »

Hello,


If it is in the modified version of cactistoric (published above) you have a 2 hours "period of graphing" by default, you can modify it by changing in "graph_view.php" the following [it appears twice in the code]

$start_min = $end_min;
$start_sec = $end_sec;
if ($end_hour > 1) {
$start_year = $end_year;
$start_month = $end_month;
$start_day = $end_day;
$start_hour = $end_hour - 2;
}
else
{
$start_year = date("Y",$begin_yesterday);
$start_month = date("m",$begin_yesterday);
$start_day = date("d",$begin_yesterday);
$start_hour = $end_hour -2 + 24;
}



For instance to display 24 hours by default, the whole code above can be replaced by

$start_hour = $end_hour;
$start_min = $end_min;
$start_sec = $end_sec;
$start_year = date("Y",$begin_yesterday);
$start_month = date("m",$begin_yesterday);
$start_day = date("d",$begin_yesterday);


Sorry to have not coded that in config_settings file
I hope this will be helpful for you

Didier
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests