Ugly Graphs: Leveled one moment, spikey the next [resolved]

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

Moderators: Developers, Moderators

Post Reply
radicand
Posts: 12
Joined: Sun Mar 19, 2006 4:43 pm

Ugly Graphs: Leveled one moment, spikey the next [resolved]

Post by radicand »

I've got a really strange issue that keeps happening- sometimes one of my graphs will have flat peaks, and then in the next 5 minute interval, it will have spikey peaks (desired).

I'm using 0.8.6h and RRDTool 1.2.6. Any help or suggestions would be appreciated regarding how to eliminate the flat graphs from appearing on occasion.

FLAT
Image

SPIKE
Image
Last edited by radicand on Wed Jun 21, 2006 11:18 pm, edited 1 time in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, you have rrdtool 1.2 selected in settings?
radicand
Posts: 12
Joined: Sun Mar 19, 2006 4:43 pm

Post by radicand »

BSOD2600 wrote:Hmm, you have rrdtool 1.2 selected in settings?
I do.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose the first graph spans some time in the past, so you see the consolidation effect. Whereas the second graph is younger in time. Please report the timespan for both ...
Reinhard
radicand
Posts: 12
Joined: Sun Mar 19, 2006 4:43 pm

Post by radicand »

They are both the same graph. I screenshotted the first, waited 5 minutes, and then screenshotted it again when it returned to normal. Same 12h period for both.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try to recreate this effect form Graph Management, using DEBUG mode and save the shown rrdtool graph statement for the flat one.
If possible, please upgrade to latest rrdtool, as 1.2.6 is know to have severe errors
Reinhard
radicand
Posts: 12
Joined: Sun Mar 19, 2006 4:43 pm

Post by radicand »

I'll update RRDTool and see if that helps.

Flat Graph

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Miharu - Bit Traffic - eth0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/miharu_traffic_in_189.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/miharu_traffic_in_188.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefba=TIME,1150932470,GT,a,a,UN,0,a,IF,IF,TIME,1150932470,GT,b,b,UN,0,b,IF,IF,+ \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:11034004.94#FF0000:"95th Percentile"  \
COMMENT:"(11.03 mbit in+out)" 
Proper Graph

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Miharu - Bit Traffic - eth0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/miharu_traffic_in_189.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/miharu_traffic_in_188.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefba=TIME,1150932685,GT,a,a,UN,0,a,IF,IF,TIME,1150932685,GT,b,b,UN,0,b,IF,IF,+ \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:12391318.8#FF0000:"95th Percentile"  \
COMMENT:"(12.39 mbit in+out)" 
I was able to get another flat, wait a few minutes and then get the proper graph again.
radicand
Posts: 12
Joined: Sun Mar 19, 2006 4:43 pm

Post by radicand »

Upgrading the RRDTool version seems to have fixed the problem entirely. Thanks for the suggestion!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests