Cool zoom/history feature for cacti :)
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Hi people,
I Install your utility (Zoom Graph) and I can see the pagesproperly. But I still have a problem about viewing history like this:
As you can see in the graph ,shown below,of last 24 hours is drawing by RRD using 5 mi. average values: (27-28 July)
But when I try to look at one week ago (20-28 July) I see that graph is drawing by RRD using 30 min average values. As you can see I use same interval, 24 hrs, but average values change.
So, how can I see graph of past dates , for example 3months, using 5 min average values?
P.S. My 5 min average RRA is 17280.
I Install your utility (Zoom Graph) and I can see the pagesproperly. But I still have a problem about viewing history like this:
As you can see in the graph ,shown below,of last 24 hours is drawing by RRD using 5 mi. average values: (27-28 July)
But when I try to look at one week ago (20-28 July) I see that graph is drawing by RRD using 30 min average values. As you can see I use same interval, 24 hrs, but average values change.
So, how can I see graph of past dates , for example 3months, using 5 min average values?
P.S. My 5 min average RRA is 17280.
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Code: Select all
[root@localhost bin]# ./rrdtool info /www/htdocs//cacti8/rra/maltepe_2b_8540_tr
affic_in_25.rrd
filename = "/www/htdocs//cacti8/rra/maltepe_2b_8540_traffic_in_25.rrd"
rrd_version = "0001"
step = 300
last_update = 1059646566
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+08
ds[traffic_out].last_ds = "3070084762"
ds[traffic_out].value = 6.7583709644e+07
ds[traffic_out].unknown_sec = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+08
ds[traffic_in].last_ds = "525567695"
ds[traffic_in].value = 1.7519472189e+08
ds[traffic_in].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 2.3098514425e+06
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 7.9654537523e+06
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 2.3098514425e+06
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 7.9654537523e+06
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 7.3797119723e+07
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 7.5014420406e+08
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 600
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 700
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 9.7436603434e+05
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 2.6766019254e+06
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 9.7436603434e+05
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 2.6766019254e+06
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 1.5743280184e+06
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 1.4055211389e+07
rra[7].cdp_prep[1].unknown_datapoints = 0
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
It seems you didn't resize your daily rra with rrdtool resize command. See rrdtool.org for documentation on rrdtool command.
The rra created before modifying the daily rra row number in cacti contains 600 row.
You have to grow the rra 1 and 5 for them to match the cacti config. Use a command like :
I recommend to first backup the rrd file before alter it.
If the data collected are not important you can simply delete the file it will be created with the good number of row in the daily rra.
After growing the rra, the rrdtool info command will returns lines like :
The rra created before modifying the daily rra row number in cacti contains 600 row.
You have to grow the rra 1 and 5 for them to match the cacti config. Use a command like :
Code: Select all
rrdtool resize /www/htdocs//cacti8/rra/maltepe_2b_8540_traffic_in_25.rrd 1 GROW 16580
If the data collected are not important you can simply delete the file it will be created with the good number of row in the daily rra.
After growing the rra, the rrdtool info command will returns lines like :
Code: Select all
...
rra[1].rows = 17280
...
rra[5].rows = 17280
...
So I have to enter these valuesin cacti 0.8
In Available RRA's/Daily (5 Minute Average) :
Right???
In Available RRA's/Daily (5 Minute Average) :
Code: Select all
X-Files Factor = 0.5
Steps= 1
Rows= 17280
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Hi,Bruno Prigent wrote:You can download a tarball with all the files needed by cacti 0.8.2a at http://www.linkdown.org/download/cactis ... .2a.tar.gz
If you have any problem please use the forum.
I Use Red Hat 7.3, and cacti 0.8
I download and install Cactistoric-0.8.2a .
But I have some problem:
1. After I install Cactistoric, I can't see the images in the graph page (I mean graph_view.php page). But links are working properly.
2. When I click a graph (graph_view.php page), I go to graph viewing page (graph.php), I can see daily, weekly, monthly and yearly graphs. But I click zoom link of Daily graph(5 min average) I go to zoom page. In this page, I see a graph ,same as daily graph. Then I try to give start date and end date then I click button, I see nothing, I just see graph name and red x !
Any public site that I can see how cactistoric works??
I adjust my rra to 17280
P.S. I try to install cactistoric into cacti 0.8 and 0.8.2 but i gelt same problem.
Please help me...
Regards
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Do you have any errors in apache error file ?
You'll comment the lines 36 and 38 of include/rrd_functions.php so cacti will log every command sent to rrdtool. Then you'll do exactly the following.
- empty or mv your log/rrd.log file
- Click on "Graph" tab so you go to the Default Tree
- Click on a graph to view Daily, Montlhy, Yearly graph
- Click on zoom to go to cactistoric.php
- Click on the "View" button without modifying the graph parameters
- Modify the zoom parameter to display yesterday graph and click the "View" button.
Recomment the lines 36 and 38 of include/rrd_functions.php then send me by email the rrd.log file.
You'll comment the lines 36 and 38 of include/rrd_functions.php so cacti will log every command sent to rrdtool. Then you'll do exactly the following.
- empty or mv your log/rrd.log file
- Click on "Graph" tab so you go to the Default Tree
- Click on a graph to view Daily, Montlhy, Yearly graph
- Click on zoom to go to cactistoric.php
- Click on the "View" button without modifying the graph parameters
- Modify the zoom parameter to display yesterday graph and click the "View" button.
Recomment the lines 36 and 38 of include/rrd_functions.php then send me by email the rrd.log file.
These are images of my cacti when I apply your instructions.Please click:Bruno Prigent wrote:Do you have any errors in apache error file ?
You'll comment the lines 36 and 38 of include/rrd_functions.php so cacti will log every command sent to rrdtool. Then you'll do exactly the following.
- empty or mv your log/rrd.log file
- Click on "Graph" tab so you go to the Default Tree
- Click on a graph to view Daily, Montlhy, Yearly graph
- Click on zoom to go to cactistoric.php
- Click on the "View" button without modifying the graph parameters
- Modify the zoom parameter to display yesterday graph and click the "View" button.
Recomment the lines 36 and 38 of include/rrd_functions.php then send me by email the rrd.log file.
1.http://www.angelfire.com/dragon/tfc71/1.jpg
2. http://www.angelfire.com/dragon/tfc71/2.jpg
3. http://www.angelfire.com/dragon/tfc71/3.jpg
4. http://www.angelfire.com/dragon/tfc71/4.jpg
This is lines 36-38 of rrd_functions (after cactistoric) of my cacti:
Code: Select all
if ($log_command == true) {
log_data("CMD: " . read_config_option("path_rrdtool") . " $command_line");
}
Code: Select all
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:641172
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:2044072
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.42:0.21:0.09
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_6.rrd --template users N:5
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_7.rrd --template proc N:120
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd --template mem_buffers N:640984
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_9.rrd --template mem_swap N:2044072
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_10.rrd --template load_1min:load_5min:load_15min N:0.42:0.21:0.09
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_11.rrd --template users N:5
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_12.rrd --template proc N:120
08/18/2003 4:35 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_13.rrd --template hdd_free:hdd_used N:34309:14382
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Comment like this :
and follow my instructions.
Code: Select all
//if ($log_command == true) {
log_data("CMD: " . read_config_option("path_rrdtool") . " $command_line");
// }
Here is the rrd.log after instructions:
Code: Select all
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222982 \
COMMENT:"From 2003-08-17 19:09:42 to 2003-08-18 19:09:42\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:42\c" \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=100 \
--width=300 \
--alt-autoscale-max \
--lower-limit=0 \
--no-legend \
--vertical-label="processes in the run queue" \
DEF:a="/www/htdocs/cacti/rra/localhost_load_1min_10.rrd":load_1min:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_load_1min_10.rrd":load_5min:AVERAGE \
DEF:c="/www/htdocs/cacti/rra/localhost_load_1min_10.rrd":load_15min:AVERAGE \
CDEF:cdefg=a,b,c,+,+ \
AREA:a#EACC00:"1 Minute Average" \
\
STACK:b#EA8F00:"5 Minute Average" \
\
STACK:c#FF0000:"15 Minute Average" \
\
LINE1:cdefg#000000:""
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222982 \
COMMENT:"From 2003-08-17 19:09:42 to 2003-08-18 19:09:42\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:42\c" \
--title="Localhost - Logged in Users" \
--rigid \
--base=1000 \
--height=100 \
--width=300 \
--alt-autoscale-max \
--lower-limit=0 \
--no-legend \
--vertical-label="users" \
DEF:a="/www/htdocs/cacti/rra/localhost_users_11.rrd":users:AVERAGE \
AREA:a#4668E4:"Users" \
\
\
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222982 \
COMMENT:"From 2003-08-17 19:09:42 to 2003-08-18 19:09:42\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:42\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=100 \
--width=300 \
--alt-autoscale-max \
--lower-limit=0 \
--no-legend \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
\
\
\
STACK:b#FFC73B:"Swap" \
\
\
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222982 \
COMMENT:"From 2003-08-17 19:09:42 to 2003-08-18 19:09:42\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:42\c" \
--title="Localhost - Processes" \
--base=1000 \
--height=100 \
--width=300 \
--alt-autoscale-max \
--lower-limit=0 \
--no-legend \
--vertical-label="processes" \
DEF:a="/www/htdocs/cacti/rra/localhost_proc_12.rrd":proc:AVERAGE \
AREA:a#F51D30:"Running Processes" \
\
\
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222982 \
COMMENT:"From 2003-08-17 19:09:42 to 2003-08-18 19:09:42\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:42\c" \
--title="Localhost - Disk Space - /dev/cciss/c0d0" \
--rigid \
--base=1000 \
--height=100 \
--width=300 \
--alt-autoscale-max \
--lower-limit=0 \
--no-legend \
--vertical-label="bytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_hdd_free_13.rrd":hdd_used:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_hdd_free_13.rrd":hdd_free:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=a,b,+,1024,* \
AREA:cdefa#F51D30:"Used" \
\
\
\
STACK:cdefe#002A97:"Available" \
\
\
\
LINE2:cdefi#000000:"Total" \
\
\
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061222992 \
COMMENT:"From 2003-08-17 19:09:52 to 2003-08-18 19:09:52\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:52\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-2937600 \
--end=1061222992 \
COMMENT:"From 2003-07-15 19:09:52 to 2003-08-18 19:09:52\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:52\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-604800 \
--end=1061222992 \
COMMENT:"From 2003-08-11 19:09:52 to 2003-08-18 19:09:52\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:52\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:09 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-31536000 \
--end=1061222992 \
COMMENT:"From 2002-08-18 19:09:52 to 2003-08-18 19:09:52\c" \
COMMENT:"Graph Generated at 2003-08-18 19:09:52\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:602976
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:2044072
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.96:0.28:0.09
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_6.rrd --template users N:3
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_7.rrd --template proc N:126
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd --template mem_buffers N:602584
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_mem_swap_9.rrd --template mem_swap N:2044072
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_load_1min_10.rrd --template load_1min:load_5min:load_15min N:0.96:0.28:0.09
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_users_11.rrd --template users N:3
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_proc_12.rrd --template proc N:123
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_13.rrd --template hdd_used:hdd_free N:14382:34309
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_14.rrd --template hdd_used:hdd_free N:2268788:62225432
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/localhost_hdd_free_15.rrd --template hdd_free:hdd_used N:62225432:2268788
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/m_2b_7507_traffic_in_16.rrd --template traffic_in:traffic_out N:1472244971:3412875425
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/m_2b_7507_traffic_in_17.rrd --template traffic_in:traffic_out N:1706912797:1963847778
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool update /www/htdocs/cacti/rra/m_2b_7507_traffic_in_18.rrd --template traffic_in:traffic_out N:4265808490:4233073323
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061223006 \
COMMENT:"From 2003-08-17 19:10:06 to 2003-08-18 19:10:06\c" \
COMMENT:"Graph Generated at 2003-08-18 19:10:06\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=1061223031 \
COMMENT:"From 2003-08-17 19:10:31 to 2003-08-18 19:10:31\c" \
COMMENT:"Graph Generated at 2003-08-18 19:10:31\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
08/18/2003 7:10 PM - CMD: /usr/local/rrdtool-1.0.35/bin/rrdtool graph - \
--imgformat=PNG \
--start=1061050231 \
--end=1061223039 \
COMMENT:"From 2003-08-16 19:10:31 to 2003-08-18 19:10:39\c" \
COMMENT:"Graph Generated at 2003-08-18 19:10:39\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=192 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
Can you try this command and see if the graph graph_test.png is generated.
Code: Select all
/usr/local/rrdtool-1.0.35/bin/rrdtool graph graph_test.png \
--imgformat=PNG \
--start=1061050231 \
--end=1061223039 \
COMMENT:"From 2003-08-16 19:10:31 to 2003-08-18 19:10:39\c" \
COMMENT:"Graph Generated at 2003-08-18 19:10:39\c" \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=192 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
DEF:a="/www/htdocs/cacti/rra/localhost_mem_buffers_8.rrd":mem_buffers:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/localhost_mem_swap_9.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"
I create graph_test.png using that command. You can see the graph in this link:
http://www.angelfire.com/dragon/tfc71/graph_test.png
I think there is no problem generating graph. According to me, problem is php files produce wrong image source path. Am I wrong?
http://www.angelfire.com/dragon/tfc71/graph_test.png
I think there is no problem generating graph. According to me, problem is php files produce wrong image source path. Am I wrong?
-
- Cacti User
- Posts: 68
- Joined: Tue Apr 22, 2003 5:51 am
What is the image source path generated ? Rigth click on the page and choose "View as source". It looks like
What are the values of the php configuration directive register_argc_argv and register_globals. You'll find them in your php.ini file (certainly in /etc) ?
Code: Select all
<img...src="graph_image.php?local_graph_id=...
Who is online
Users browsing this forum: No registered users and 3 guests