Hi,
I'm a bit new to this cacti lark, but seem to be hitting a problem with graphing data with the following config (same data source):
Item #1 - Graph Item Type: Area, CF Type: Max
Item #2 - Graph Item Type: GPRINT, CF Type: Max (but same happens with all options)
(RRA's are set to record average,min,max,last)
The Graph Management section (when debugging graphs) reports:
"ERROR: can't parse ':MAX:max%8.0lf'"
This is from looking at the source of the failed graph in the tree section:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="sol1 - Unix - CPU (Generic - test)" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="CPU Utilisation (%)" \
DEF:a="/opt/apache/htdocs/cacti/rra/sol1_cpu_sy_39.rrd":cpu_sy:MAX \
AREA:a#FFF200:"ave" \
GPRINT::MAX:"max%8.0lf"
From looking at the provided graphs & the source code it looks like the above rddtool graph command is incorrect. The last "line" should read:
GPRINTMAX:"max%8.0lf"
Is this a problem with the config of my graphs etc, or is it a problem with the cacti code itself? If I copy & amend the source code to fix the "last" line the graph is produced as expected.
Can you only graph an average of the data collected rather than reporting the max over the same period (when using GPRINT also)?
Item #1 works fine on its own.
Any useful help would be appreciated.
Bob.
PS - I'm using version 0.8.2a
Use of Area/MAX with following GPRINTs in graphs
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Mon Sep 01, 2003 10:35 am
Bob,
I had the same problem and managed to implement a workaround by commenting lines 828 and 829 of rrd_functions.php:
# }else{
# $data_source_name = "";
I must confess I do not really understand why the original version of these two lines of code were implemented (maybe somebody can help here!) but so far, the adapted version is working like a charm.
I am using Cacti version 0.8.3
David
I had the same problem and managed to implement a workaround by commenting lines 828 and 829 of rrd_functions.php:
# }else{
# $data_source_name = "";
I must confess I do not really understand why the original version of these two lines of code were implemented (maybe somebody can help here!) but so far, the adapted version is working like a charm.
I am using Cacti version 0.8.3
David
Who is online
Users browsing this forum: No registered users and 1 guest