Hi all,
I created a Graph Template to represent CPU utilization of two nodes of a cluster. It works quite ok but I have a problem with putting the nodes name into the legend. I tried to use the |host_description| statement but this doesn't work. I also do not see an option to defined it manualy. The output of a rrdtool graph command looks like this:
/usr/local/rrdtool-1.2.12/bin/rrdtool graph - \
--imgformat=PNG \
--start=1140693165 \
--end=1140779565 \
--title="Combined CPU" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/02/23 11\:12\:45 To 2006/02/24 11\:12\:45\c" \
COMMENT:" \n" \
--vertical-label="" \
--slope-mode \
--font TITLE:10:/usr/openwin/lib/X11/fonts/TrueType/GillSans-BoldItalic.ttf \
--font AXIS:7:/usr/openwin/lib/X11/fonts/TrueType/GillSans.ttf \
--font LEGEND:8:/usr/openwin/lib/X11/fonts/TrueType/GillSans.ttf \
--font UNIT:8:/usr/openwin/lib/X11/fonts/TrueType/GillSans-Italic.ttf \
DEF:a="/opt/cacti-0.8.6h/rra/node1_cpu_162.rrd":cpu:AVERAGE \
DEF:b="/opt/cacti-0.8.6h/rra/node2_cpu_163.rrd":cpu:AVERAGE \
AREA:a#FF6044:"|host_description|" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf" \
GPRINTMIN:"Minumum\:%8.0lf\n" \
AREA:b#B90054:"|host_description|" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf" \
GPRINTMIN:"Minumum\:%8.0lf"
Any ideas?
Thanks in advance,
Adi
Host names as description for the AREAs
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 0 guests