Host names as description for the AREAs

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
adi
Posts: 3
Joined: Tue Feb 21, 2006 10:07 am

Host names as description for the AREAs

Post by adi »

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|" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf" \
GPRINT:a:MIN:"Minumum\:%8.0lf\n" \
AREA:b#B90054:"|host_description|" \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf" \
GPRINT:b:MIN:"Minumum\:%8.0lf"

Any ideas?

Thanks in advance,
Adi
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Moved to Feature Requests
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests