95th percentile problem

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

Moderators: Developers, Moderators

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

Post by gandalf »

DervMan wrote:This doesn't look right to me.....
This is definitively not the default template. Did you change it? Are you able to import the original one?
R.
schukido
Posts: 4
Joined: Mon Jun 07, 2010 9:06 am

Re: 95th percentile problem

Post by schukido »

Dear gandalf. I have the same problem too. I didn't import or change graph template for 95th cacti percentile. This is a default template of cacti 0.8.7e. Please help us to fix it.

Thank you and Best Regards,

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

Re: 95th percentile problem

Post by gandalf »

Please again post a screenshot of your template
R.
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Re: 95th percentile problem

Post by galco »

Hello,

I'm having the sambe problem with cacti 0.8.8a. After running via cli rrdtool graph... I get:

Code: Select all

[root@segadors ~]# /opt/rrdtool-1.4.7/bin/rrdtool graph - \
> --imgformat=PNG \
> --start=-86400 \
> --end=-60 \
> --title='4506-1 - switch troncal - Traffic - Gi2/2' \
> --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:7: \
> --font LEGEND:8: \
> --font UNIT:7: \
> DEF:a="/dades/www/cacti/rra/4506-1_-_switch_troncal_traffic_in_7272.rrd":'traffic_in':AVERAGE \
> DEF:b="/dades/www/cacti/rra/4506-1_-_switch_troncal_traffic_in_7272.rrd":'traffic_out':AVERAGE \
> CDEF:cdefa='a,8,*' \
> CDEF:cdeff='b,8,*' \
> CDEF:cdefbe='a,UN,INF,UNKN,IF' \
> CDEF:cdefbh='TIME,1363077640,GT,a,a,UN,0,a,IF,IF,TIME,1363077640,GT,b,b,UN,0,b,IF,IF,+' \
> 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"  \
> COMMENT:"Transfer\:  3.72 GB"  \
> LINE1:cdeff#002A97FF:"Outbound"  \
> GPRINT:cdeff:LAST:"Current\:%8.2lf %s"  \
> HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:"  \
> GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"  \
> COMMENT:"|95\:bits\:6\:current| mbit\n"  \
> GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n"  \
> COMMENT:" \n" \
> HRULE:106642450.09#FF0000FF:"95th Percentile"  \
> COMMENT:"(106.64 mbit in+out)"  \
> AREA:cdefbe#8F9286FF:""  \
> COMMENT:"Transfer\: 568.04 MB"  \
> HRULE:|95\:bits\:0\:current|#0000FFFF:"95%\:"  \
> COMMENT:"136.29 mbit"  \
> COMMENT:"Total Transfer\: 4.29 GB\n" > /dev/null
-bash: 95:bits:0:current: command not found
-bash: COMMENT:136.29 mbit: command not found
-bash: 95:bits:0:current: command not found
-bash: GPRINT:cdeff:AVERAGE:Average\:%8.2lf %s: command not found
ERROR: Expected some arguments after 'HRULE:'

root@segadors# rrdtool --version
RRDtool 1.4.7 Copyright 1997-2012 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Oct 15 2012 16:44:36

settings: rrdtool 1.4

My 95 percentile template:
percentile95-template.png
percentile95-template.png (74.21 KiB) Viewed 1392 times
My installed plugins:
installed_plugins.png
installed_plugins.png (61.7 KiB) Viewed 1392 times
Could you help me?

Thanks!
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: 95th percentile problem

Post by phalek »

It seems like not all of the HRULE get converted correctly:

> HRULE:|95\:bits\:0\:current|#00FF00FF:"95%\:" \
> HRULE:|95\:bits\:0\:current|#0000FFFF:"95%\:" \

This one does:
> HRULE:106642450.09#FF0000FF:"95th Percentile" \

Can you check if these have a datasource selected ? Compare the working one with the non-working ones.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Re: 95th percentile problem

Post by galco »

SOLVED

As can you see on my screenshot I had two HRULE wrong.

HRULE: |95:bits:0:current| must be HRULE: |95:bits:0:current:2|

Thank you phalek!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests