Building a custom graph can anyone help?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mithandra
Posts: 46
Joined: Wed Jul 14, 2010 8:19 am

Building a custom graph can anyone help?

Post by mithandra »

Hi Guys,

We currently have 10 servers which we want to represent in one Total Traffic Graph for all those servers.

What I have tried so far is:

1. Clicked Add from the graph Management page
2. Gave this a name clicked save.
3. Then under the graph items clicked add
4. chosen the host from the data source and then select the data source traffic in, for the interface I wanted.
5. I repeated this action for the traffic out

I ran a test with two of the server interfaces, so I have 2 x traffic in and 2 x traffic out

I also get all traffic in items to LINE1 and all Traffic out to AREA.

I then added another graph item.

1. Left data source to none
2. Graph Item Type to AREA
3. CDEF Function I set to Similar Data Sources (Sum), Bytes to Bits
4. Set the text format to "Traffic In"

Repeated the last section for "Traffic Out" but used LINE1 in the Graph item type.

When I enter debug mode all i get is the following error message.

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="dummy by graphname" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:8: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/bln-vmh-piw-01_traffic_in_431.rrd":traffic_in:MAX \
DEF:b="/var/www/cacti/rra/bln-vmh-piw-01_traffic_in_431.rrd":traffic_out:AVERAGE \
DEF:c="/var/www/cacti/rra/bln-vmh-piw-02_traffic_in_641.rrd":traffic_in:MAX \
DEF:d="/var/www/cacti/rra/bln-vmh-piw-02_traffic_in_641.rrd":traffic_out:AVERAGE \
CDEF:cdefe=,8,* \
LINE1:a:""  \
AREA:b:""  \
LINE1:c:""  \
AREA:d:""  \
AREA:cdefe#00FF00FF:"Traffic In"  \
LINE1:cdefe#1000ffFF:"Traffic Out" 

RRDTool Says:

ERROR: invalid rpn expression in: ,8,*


Can anyone point me in the direction of a way I can get this to work please?

Thanks Mithandra



I then added a a
User avatar
Vins
Cacti User
Posts: 116
Joined: Tue Sep 12, 2006 3:06 am

Re: Building a custom graph can anyone help?

Post by Vins »

Try the plugin Aggregate
Create the traffic graph on each host, then under Graph Management select the graphs you want to merge and choose "Create aggregate graph"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests