Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The final graph I want to plot is similar to below graph. Several data source "stacking" in one graph

CDEF function to plot this graph manually (through command line) is like:

DEF:t1=$RRD_PATH:telnet:AVERAGE \ 
DEF:t3=$RRD_PATH:domain:AVERAGE \ 
CDEF:v1=t1,t2,t3,t4,+,+,+ \ 
CDEF:v2=t1,t2,t3,+,+ \ 
CDEF:v3=t1,t2,+ \ 
CDEF:v4=t1 \ 
CDEF:v5=t5,1024,/ \ 
AREA:v1#339966:"HTTP" \ 
AREA:v3#FF0000:"SMTP" \ 
AREA:v4#0000ff:"TELNET" \ 
LINE2:v5#000000:"Total(Kb)" \ 

However, I want to define CDEF functions on Cacti Console/interface, to realize this "stacking effect". For example, inbound traffic of Fa0/1-24 is t1-t24, data presented on the graph should be: t1, t1+t2, t1+t2+t3, ... etc.

Any idea on this? Thanks.

share|improve this question
up vote 0 down vote accepted

Cacti naturally supports this function. Choose STACK as the Graph Item Type, starting from the second data source. enter image description here

Then the graph of following data sources will stack on the previous graphs. Final output I got is like below graph:

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.