Graphs displayed are not sloped. Stepped look
Moderators: Developers, Moderators
Graphs displayed are not sloped. Stepped look
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.
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 (146.33 KiB) Viewed 2855 times
enable graph debugging and post the rrdtool graph command.
using rrdtool 1.2?
using rrdtool 1.2?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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
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
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):
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
Who is online
Users browsing this forum: No registered users and 1 guest