Cool zoom/history feature for cacti :)

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
smb2520
Posts: 1
Joined: Fri Oct 17, 2003 8:39 am
Location: Myrtle Beach SC
Contact:

cactistoric 0-8.3 with cacti 0.8.3a

Post by smb2520 »

I am having trouble with getting cactistoric 0-8.3 to work with cacti 0.8.3a I intalled it without the functions.php like i read in the forums. The problem seems to be the zoom feature doesnt work correctly. I was curious if you could send me an example of a good functions.php file to make everything function properly.

Thanks in Advance,
Scott Bartlett

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

Re: cactistoric 0-8.3 with cacti 0.8.3a

Post by diegov »

smb2520 wrote:I am having trouble with getting cactistoric 0-8.3 to work with cacti 0.8.3a I intalled it without the functions.php like i read in the forums. The problem seems to be the zoom feature doesnt work correctly. I was curious if you could send me an example of a good functions.php file to make everything function properly.

Thanks in Advance,
Scott Bartlett

:P
:o Me too !
Justler
Posts: 12
Joined: Tue Oct 28, 2003 1:52 pm

CSV Output and errors with cactistoric...

Post by Justler »

Notice: Undefined index: cactistoric.php: in /usr/local/www/data-dist/cacti/include/functions.php on line 1212

I get this error when I click zoom in cactistoric... Anyone know what this means? I took the functions.php from the cactistoric 0.8.3 code and put in in the include directory for Cacti and got another error in graph_view.php on line 41...

I checked the install steps, didn't see anything that I missed... Can someone give me a hand?

Also, there was talk of adding CSV output to Cactistoric... Is that still being worked on? Is there any way you could also add a function to the graph where the point you hover over with the mouse gives you the current data collected at that time?

Great program.
Justler
Posts: 12
Joined: Tue Oct 28, 2003 1:52 pm

Post by Justler »

Has anyone tried cactistoric on 0.8.4?

When I do this: mysql --password=test TEST < cactistoric.sql. I get this: ERROR 1146 at line 12: Table 'DTSLite.user_realm_filename' doesn't exist.

New install of cactistoric and Cacti 0.8.4.

I'm hoping there is an update to cactistoric in the works with compatability for 0.8.4 that includes CSV output option. Any updates? CSV output would be a great options for analysis and management type reports.
Suzumushi

zoom, and rrd files size

Post by Suzumushi »

Hello
i've got one question
i would like to have 2 years back history (5min graphs)
so i made some changes
rrdtool info rrd_file shows me something like that

rra[0].rows = 138240
rra[1].rows = 23040
rra[2].rows = 5760
rra[3].rows = 1594
rra[4].rows = 138240
rra[5].rows = 23040
rra[6].rows = 5760
rra[7].rows = 1594

is this values are correct?
now each rrd file has about 5 MB, it will grow up even more? or it will stay in this size?

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

Re: zoom, and rrd files size

Post by TFC »

Suzumushi wrote:Hello
i've got one question
i would like to have 2 years back history (5min graphs)
so i made some changes
rrdtool info rrd_file shows me something like that

rra[0].rows = 138240
rra[1].rows = 23040
rra[2].rows = 5760
rra[3].rows = 1594
rra[4].rows = 138240
rra[5].rows = 23040
rra[6].rows = 5760
rra[7].rows = 1594

is this values are correct?
now each rrd file has about 5 MB, it will grow up even more? or it will stay in this size?

regards
Suzumushi
Hi ,
I store 3 months history and each my rrd file is 628420 bytes. So, they will stay in this size.
Calos

Upgrade of Cactistoric for 8.4

Post by Calos »

Hi,
I've became a cactistoric addicted but there is no new upgrade for the 8.4 is there any plan to have one sometimes cause I ve upgrade to the new version of cacti, so i don't know if i'm not going to downgrade if cactistoric dont come up !
thks for answer :o
sini
Cacti User
Posts: 91
Joined: Mon Nov 24, 2003 10:22 am
Location: Hungary

Am I wrong? 17280rows = 2 months not 3! (5 min average)

Post by sini »

Hi All,

From cactistoric INSTALL instruction:
" 3) Customize the number of row a rra should keep. I use 17280 rows in daily RRA to have 3 month of 5
minutes average data. In cacti go to Console/Available RRA's and modify the desired values or use
the script expand_rra.sql if you want 3 month history. "

hmmm.....???

Q1: Are You sure about it???
I am a bit slow thinking ;-) so I made it clear step by step.
Let's see!
----
DEFAULT Cacti Daily Grap 5 min Average
step = 1 (means 5 min average)
rows = 600
1row=300sec = 5min (5x60sec)
600row x 300sec = 180000sec=3000min
----
3000min/1440min = 2.083333 day

1 day = 60min x 24 = 1440min = 86400sec
1 month = 1440min x 30 = 43200min = 259200sec
1 year = 43200min x 12 = 518400min = 3110400sec
2 years = 5128499min x 2 = 103680min = 6220800sec

1 day 1440min/5min =288 row
1 month 43200min/5min = 8640 row
1 year 518400min = 103680 row
2 years = 207360 row

Here comes the interesting part!
So 17280 rows must equal 3 months. (the INSTALL says)

17280 x 300sec = 5184000sec
518400sec/86400sec(1day) = 60 days! = 2 months not 3.

Q2: Am I wrong?
Q3: I need a two years back history (5 min average) 6220800sec/300sec=20736 row will ok?

thx for answers!

System: Debian,cacti-0.8.3 with cactistoric-0.8.3 (works fine!) great prog!
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

Ok ok 17280 rows is for 60 days :lol:
I'm planning to port cactistoric on cacti-0.8.4, i just need to find more time.
Steve

Post by Steve »

If your gonna port to 0.8.4???
I think I'll wait then...... :lol: :lol:
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

0.8.4 is working on my box, I think I will post it this week end
Bruno Prigent
Cacti User
Posts: 68
Joined: Tue Apr 22, 2003 5:51 am

Post by Bruno Prigent »

Hi,

cactistoric-0.8.4-0.01 is released and available at http://linkdown.org/download/cactistori ... .01.tar.gz.
Decompress the archive and read the INSTALL file.

I tested this version with cacti-0.8.4 installed from scratch on a Debian stable. Please backup your cacti directory before installing cactistoric, I don't wanna be responsible of any data loss.

The install is simpler than previous version since I don't have to modify the database to grant access to cactistoric.php (thanks RaX 8) ).

Before reporting problems, be sure the files modified/added by cactistoric have the appropriate right and owner (ie. the same as cacti files).
If you have problems with "undefined variables" please post the error and the section "Error handling and logging" of your php.ini file.
For any problems, tell me if you allready used cacti and/or cactistoric, which version and tell me if cacti was working before you installed cactistoric.

Bruno
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,

I've installed cactistoric 0.8.4-0.01 on top of cacti 0.8.4 (Gentoo 1.4, Apache 2.0.48 / PHP 4.3.3) and get this when zooming :

Code: Select all

Notice: Undefined variable: rra_id in /usr/local/src/cacti-0.8.4/cactistoric.php on line 106
My PHP error handling is :

Code: Select all

error_reporting  =  E_ALL & ~E_NOTICE
File permissions are correct, and I haven't customized the number of rows kept in a rra. I've previously used cactishoric and cacti 0.8.3a w/o problems, and cacti 0.8.4 was working OK before installing cactistoric.

Thanks in advance.

Regards,

Frédéric Mangeant
Justler
Posts: 12
Joined: Tue Oct 28, 2003 1:52 pm

Post by Justler »

Same as above, but on FreeBSD. Apache/1.3.28, FreeBSD 4.8-RELEASE, PHP 4.3.4RC1, Cacti 0.8.4, all permissions etc are double checked to be correct.

I get the same error upon zooming. My graph also displays data from 1969-12-31 to current no matter what I select to zoom.
diegov
Posts: 13
Joined: Tue Jun 17, 2003 5:16 pm
Contact:

Post by diegov »

Well I'm having the same issue with Cactistoric-0.8.4

This is what I'm running:
SoL Linux 17 - krn 2.4.22
Apache 1.3.28
PHP 4.3.2

Code: Select all

Notice: Undefined variable: rra_id in /server/apache/htdocs/cacti/cactistoric.php on line 106
Line 106 reads:

Code: Select all

print " <div align='center'><img src='graph_image.php?local_graph_id=" . $_GET["local_graph_id"] . "&rra_id=" . $rra_id . $graph_param . "' border='0' alt='$graph_title'></div>\n";
Cheers,

DiegoV
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests