95th percentile graph from docs.cacti.net

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

Moderators: Developers, Moderators

Post Reply
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

95th percentile graph from docs.cacti.net

Post by JorisFRST »

I updated to this graph template, and now those graphs are not drawing anymore (after applying to an old graph).

OLD debug :
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"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#002A97FF:"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:132598.82#FF0000FF:"95th Percentile" \
COMMENT:"(0.13 mbit in+out)"
RRDTool Says:

OK


New debug :

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="EUMAIL01 - Traffic - 172.21.100.141 (Broadcom BCM5708C NetXtreme II GigE (NDIS VBD)" \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_in:MAX \
DEF:c="/var/www/cacti/rra/zels2071_eumal01_traffic_in_269.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefi=c,8,*,-1,* \
CDEF:cdefj=c,8,* \
AREA:cdefa#00FF0099:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Transfer\: 230.14 MB" \
LINE1:cdeff#005D57FF:"Peak Usage\n" \
HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
COMMENT:"|95\:bits\:6\:current| mbit\n" \
AREA:cdefi#00A0FF99:"Outbound" \
GPRINT:cdefj:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefj:AVERAGE:"Average\:%8.2lf %s"
RRDTool Says:


As you see it doesn't say OK
I can't really find what's wrong.

Any ideas ?
Cacti 0.87e
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rrdtool version? tried a different version?
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

RRDTOOl version 1.3.8


Not tried another version yet as everything else works.
And the "old" standard template for 95th percentile always worked fine.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see the related data source and post a screen shot of the data source items. It may happen, that you need to re-assign them
R.
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Post by JorisFRST »

Ok, I've had another look but can't point it down,

screenshot included.
Attachments
95th.PNG
95th.PNG (26.9 KiB) Viewed 2362 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Looks fine. Can't help without access to the system; never came across a similar problem; sorry
R.
adamc
Posts: 9
Joined: Thu Jul 15, 2010 3:36 pm

Re: 95th percentile graph from docs.cacti.net

Post by adamc »

I have the exact same problem, did you ever solve it?
pfraser
Posts: 1
Joined: Mon Jan 17, 2011 1:17 pm

Re: 95th percentile graph from docs.cacti.net

Post by pfraser »

I ran into this problem also and found the problem. For me I had upgraded to Cacti 0.8.7g on a new server. The graph template for 95th percentile is much different that it was under 0.8.7e. The debug output is key, but you have to paste it into a terminal to get more information. Then you get this,

Code: Select all

-bash: 95:bits:0:current: command not found
-bash: GPRINT:cdeff:AVERAGE:Average\:%8.2lf %s: command not found
Looking at the debug output more closely I noticed that the 95 percentile functions have different output,

HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
vs.
HRULE:110704.97#FF0000FF:"95th Percentile" \

So the percentile function isn't working everywhere. Looking at the graph template there are a bunch of percentile functions, however several of them are missing a field.

Item # 8 HRULE: |95:bits:0:current|

should read,

Item # 8 HRULE: |95:bits:0:current:2|

Fix all the other places where there aren't 5 fields. From the docs,

http://www.cacti.net/downloads/docs/html/variables.html

Nth Percentile

|[0-9]:(bits|bytes):[0-9]:(current|total|max|total_peak|all_max_current|all_max_peak|aggregate_max|aggregate_sum|aggregate_current|aggregate):[0-9]|

So that fixes the graph. I'm not sure I like all the extra data on this template, I just want a simple red line at the 95th percentile.

Paulo
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests