Graphs displayed are not sloped. Stepped look

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

Moderators: Developers, Moderators

Post Reply
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Graphs displayed are not sloped. Stepped look

Post by jacauc »

I am using the latest version of Cacti, and I'm trying to make some custom graphs with custom RRAs.

It seems that whatever I do, I cannot get the "slope" mode of rrdtool to work like it should.

Is it possible to make my graphs display a straight angled line between two points instead of the Manhattan skyline look?

In the attachment is my actual graph, and in pink, I have drawn what I would like to see.


Please help.
Attachments
graphs.jpg
graphs.jpg (146.33 KiB) Viewed 2880 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

enable graph debugging and post the rrdtool graph command.

using rrdtool 1.2?
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Code: Select all

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="aberdeen - Traffic - Se0/0:0" \
--rigid \
--base=1024 \
--height=480 \
--width=716 \
--upper-limit=2560000 \
--lower-limit=0 \
--units-exponent=6 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/htdocs/cacti/rra/aberdeen_traffic_in_11.rrd":traffic_in:AVERAGE \
DEF:b="C\:/htdocs/cacti/rra/aberdeen_traffic_in_11.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,120,TREND,8,* \
CDEF:cdefb=a,8,* \
CDEF:cdefe=b,120,TREND,8,* \
CDEF:cdeff=b,8,* \
LINE3:cdefa#12B42D:"Inbound"  \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n"  \
LINE3:cdefe#0000F8:"Outbound"  \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" 


RRDTool Says:

OK
Yep, using RRDTOOL 1.2.23
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Your graph shows the TREND line only, not the raw data. And the TREND is related to a quite short time interval of 120 seconds.
Either, slope-mode does not support trending or you should use a longer interval, because 120 would only take two items into account even when using the 1 min poller patch. Without that patch, IMHO it's worthless at all.
Reinhard
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

My Apologies,

I added the trend to try and smooth out the lines.

This is the actual graph code (corresponding to the attachment in my first post):

Code: Select all

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="aberdeen - Traffic - Se0/0:0" \
--rigid \
--base=1024 \
--height=480 \
--width=716 \
--upper-limit=2560000 \
--lower-limit=0 \
--units-exponent=6 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/htdocs/cacti/rra/aberdeen_traffic_in_11.rrd":traffic_in:AVERAGE \
DEF:b="C\:/htdocs/cacti/rra/aberdeen_traffic_in_11.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
LINE3:cdefa#12B42D:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE3:cdefe#0000F8:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 
RRDTool Says:

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

Post by gandalf »

No need to apologize. But has your issue been solved, then? Else, please again post a screenshot
Reinhard
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Nope, still getting the same issues.
Actually, my initial screenshot is the one related to this graph (without the trend). - The screenshot in my 1st post = the code in the 5th post of this topic.
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Not sure if this will help...
My RRA is set to: 0.5, 1, 1000, 6000
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post the whole rra settings from "Data Sources -> RRAs"
Reinhard
jacauc
Posts: 34
Joined: Sun Sep 10, 2006 1:05 am

Post by jacauc »

Thanks, I seem to have got it running.
I'm honestly not sure what I did here....otherwise I would've posted the method... sorry.

Thanks anyways for the prompt responses!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests