Legend color

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
sebastijan
Posts: 3
Joined: Fri Aug 12, 2005 3:52 am

Legend color

Post by sebastijan »

Hi, I'm new to cacti. I have done fresh install of cacti 0.8.6f on windows 2000 and created netware cpu utilization graph for two processors directly from template. Both graph were displayed ok but when I changed Legend color on one graph I got rrdtool error:
ERROR: Not a valid vname: #FFF200 in line AREA:#FFF200:CPU Utilization
CPU Utilization graphraph, which was not changed is still ok.

configuration:
apache_2.0.54
cacti-0.8.6f
mysql-4.1.13a
php-5.0.4
rrdtool-cygwin-1.2.11

Another question:
Is it ok to have "None" for CPU utilization data source?

regs s.
Attachments
cpuutil-bad.jpg
cpuutil-bad.jpg (56.6 KiB) Viewed 1400 times
cpuutil-ok.jpg
cpuutil-ok.jpg (75.1 KiB) Viewed 1400 times
sebastijan
Posts: 3
Joined: Fri Aug 12, 2005 3:52 am

Post by sebastijan »

Some aditional info:
When looking at graph source i have found that with changing the legend color graph has lost link to rrd file.
This is good graph source:

Code: Select all

c:\cacti\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DZ-01 - CPU Utilization - CPU0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="C\:\Cacti\Apache2\htdocs/rra/dz01_cpu_8.rrd":cpu:AVERAGE \
AREA:a#FF0000:"CPU Utilization"  \
GPRINT:a:LAST:"Current\:%8.0lf"  \
GPRINT:a:AVERAGE:"Average\:%8.0lf"  \
GPRINT:a:MAX:"Maximum\:%8.0lf" 
and this is corrupted graph source

Code: Select all

c:\cacti\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="DZ-01 - CPU Utilization - CPU1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
AREA:#FFF200:"CPU Utilization"  \
GPRINT::LAST:"Current\:%8.0lf"  \
GPRINT::AVERAGE:"Average\:%8.0lf"  \
GPRINT::MAX:"Maximum\:%8.0lf" 
Any idea how to add DEF back to corrupted graph?
sebastijan
Posts: 3
Joined: Fri Aug 12, 2005 3:52 am

Post by sebastijan »

Some more info.
When Legend color is changed in Graph Management filed task_item_id in table graph_templates_item for that particular local_graph_id is set to 0.

Found problem with mysql (charqacter encoding on database was latin2 not latin1, so there were problems with CONCAT_WS functions)

regs s.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests