Wanted: completely manual graph definitions.

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
dlc
Posts: 11
Joined: Thu Apr 14, 2005 12:14 pm

Wanted: completely manual graph definitions.

Post by dlc »

I would like to see a way to manually define a graph using direct RRDGraph syntax; I'm going nuts trying to figure out how to make the Cacti interface do what I need.

For example, I want to graph the largest of three datasources. What I want to do is this:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="High phase current" \
--base=1000 \
--height=400 \
--width=600 \
--alt-autoscale \
--vertical-label="Current, Amps" \
DEF:a="/usr/local/www/data-dist/cacti/rra/ALC/Emon/1m.rrd":I_A:AVERAGE \
DEF:b="/usr/local/www/data-dist/cacti/rra/ALC/Emon/1m.rrd":I_B:AVERAGE \
DEF:c="/usr/local/www/data-dist/cacti/rra/ALC/Emon/1m.rrd":I_C:AVERAGE \
CDEF:cdefd=a,b,GT,a,b,IF,c,GT,a,b,GT,a,b,IF,c,IF \
LINE3:cdefd#000000:"max phase"
The problem is that I can't get Cacti to create the DEF lines unless I give it LINE[123] graph items.

I've seen people post that drawing with white lines is the solution, but that screws up my scaling and any background colors I may apply (by using CDEFs and AREA items).

These graphs would have to be opaque to the UI somehow, I suppose, but at least I could place them on the trees.

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

Re: Wanted: completely manual graph definitions.

Post by gandalf »

dlc wrote:I've seen people post that drawing with white lines is the solution, but that screws up my scaling and any background colors I may apply (by using CDEFs and AREA items).
I second your request. But your actual problem can be solved. Use following CDEF for those LINEx Items you do not want to see:

Code: Select all

cdef=CURRENT_DATA_SOURCE,0,*
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests