Can't get 95th percentile working

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
deveyn1
Posts: 2
Joined: Thu Sep 04, 2003 7:17 pm

Can't get 95th percentile working

Post by deveyn1 »

I have a RH9.0 and Cacti 0.8.3 installation working beautifully except for the 95th percentile. I have tried the following:
alexcf wrote:
Figured it out. Make sure you add a Graph Item Input for the HRULE in Graph Templates, and then go to Graph Management and assign the Traffic In for the interface to the Graph Item Input in your graph.

For the HRULE in the Graph Template, I have:

Data Source: Traffic - In (traffic_in)
Graph Item Type: HRULE
Consolidation Function: Average
CDEF Function: None
Value: |95:bits:0:current|
GPRINT Type: Normal
Text Format: 95th Percentile: |95:bits:6:current| Mbit

Give it a try!

- Eric
OK, those are the steps I've used, if you want access to it to have a look, leave a message here, if you're on IRC etc, that could be helpful.
When I do this, I get red x's where the graphs should be for the traffic graphs, but all other graphs are ok.

Any ideas?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

If you click on 'view source' under one of the broken graphs, what is displayed?

-Ian
deveyn1
Posts: 2
Joined: Thu Sep 04, 2003 7:17 pm

Post by deveyn1 »

raX wrote:If you click on 'view source' under one of the broken graphs, what is displayed?

-Ian
First of all, here's the source on the graph when everything is ok and working:

/usr/local/rrdtool-1.0.42/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="Switch - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_in:AVERAGE \
DEF:b="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
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"

Then, I go back to the console, and replicate the configuration in my first message and I get red x's for all the graphs. Here is the source after the graphs are broken (this is the same source I have in the lines above, but after the 95th %ile modification):

ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/usr/local/rrdtool-1.0.42/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="Switch - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_in:AVERAGE \
DEF:b="/home/cactistats/public_html//cacti/rra/switch_traffic_in_27.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
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" \
HRULE:0#:"95th Percentile\: 0 Mbit"


OK, so what did I miss? I'm kind of a newbie at this so any help would be appreciated.

I think it has something to do with the error regarding the data source, but I didn't see that mentioned in the manual. The only instructions I saw in the manual relating to 95th %ile and how to use it involved the syntax, i.e. "|95:bits:6:current|"

Thank you.
warenet
Cacti User
Posts: 53
Joined: Mon Feb 10, 2003 12:00 pm
Location: Southern / CA
Contact:

Post by warenet »

I had a similar issue...

I could only make the 95th percentile and summation functions work by creating a new data source.

I've been using the Comment item type.

What's odd is I can only make the "total" features work in these.

I'd like to be able to display 95th percentile of inbound and outbound traffic separately but can't seem to make it work.

TIA,
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

If you specify 'current' rather than 'total', you must have a data source selected for that particular graph item. This is because when Cacti sees 'current', it looks at the data source source for the current graph item and uses that.

So if you want to display 95th percentile for outbound traffic, you could create a graph item like:

Type: COMMENT
Data Source: (outbound traffic)
Text Format: 95th (out): |95:bits:6:current| Mbit

If this still does not work, let me know and I will look into it. Perhaps you have found a bug.

-Ian
warenet
Cacti User
Posts: 53
Joined: Mon Feb 10, 2003 12:00 pm
Location: Southern / CA
Contact:

Post by warenet »

Yep... no luck...

I have Traffic (traffic_out) selected in the drop down.

Let me know if you'd like a login to take a look.

Code: Select all

ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/usr/local/rrdtool-1.0.42/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="216.206.181.82 - Traffic - GigabitEthernet/26" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/cacti.new/rra/216_206_181_82_traffic_in_298.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/cacti.new/rra/216_206_181_82_traffic_in_298.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
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:"95th total: 35.44"  \
COMMENT:"GB: 288.38"  \
COMMENT:"0 Mbit" 

raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

warenet wrote:Let me know if you'd like a login to take a look.
I tried reproducing your graph with no luck (works for me). If you want me to login and check it out, just sent me an e-mail with the information.

-Ian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

All fixed :-D.

The problem was that you forgot to update the "Outbound Data Source" data input source with the new "95th outbound" item. Without doing this, the data source selection is not pushed out to all attached graphs.

-Ian
warenet
Cacti User
Posts: 53
Joined: Mon Feb 10, 2003 12:00 pm
Location: Southern / CA
Contact:

Post by warenet »

Thanks a ton...

Can you tell me where I do that?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Select "Graph Templates" -> "Interface - Traffic (bits/sec)" -> "Outbound Data Source".

-Ian
warenet
Cacti User
Posts: 53
Joined: Mon Feb 10, 2003 12:00 pm
Location: Southern / CA
Contact:

Post by warenet »

Gotcha... Didn't even know that was there.

So only one last question...

Is there enough data for 5 minute accuracy at the end of the month?

Or can I adjust the RRA for the monthly?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

warenet wrote:Is there enough data for 5 minute accuracy at the end of the month?
Not by default, no. To do this, you need to change the monthy RRA to read:

Steps: 1
Rows: 8928 (31 days)

-Ian
le-stratege
Posts: 9
Joined: Fri Sep 05, 2003 1:04 pm

Post by le-stratege »

I is not all understood for generate a 95th for outbound traffic !! -_-


sorry -_-
le-stratege
Posts: 9
Joined: Fri Sep 05, 2003 1:04 pm

Post by le-stratege »

it's ok now
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests