Generating 95th percentile graphs manually

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

Moderators: Developers, Moderators

Post Reply
skindip
Posts: 1
Joined: Tue Sep 11, 2007 3:49 am

Generating 95th percentile graphs manually

Post by skindip »

Hi,

We are running cacti with using 95th percentile for billing, and so far we have been really impressed with the results.

I'm looking for a method of automating the graph generation process, so that the graphs can be sent out as a report via email.
Specifically I'm trying to work out the "rrdtool graph" command that I would need to run against a *.rrd to generate the 95th percentile style graph as seen in the cacti front end.

I thought it would be something like the following:

rrdtool graph graph.png DEF:in=data.rrd:traffic_in:AVERAGE DEF:out=data.rrd:traffic_out:AVERAGE CDEF:base=in,out,MAX VDEF:n95=base,95,PERCENT AREA:in#0000b0:incoming AREA:out#00ff0080:outgoing LINE1:base#000000:maximum LINE1:n95#ff0000:"95%-tile "GRPINT:n95:"at %.2lf %s" --start 20070801 --end start+31d

However, the above generates an "ERROR: Garbage found where STACK expected" message... What command is cacti sending to rrdtool to generate the graphs, as it works fine in the cacti front end?

I guess this could be classed as a bit of an RRDTOOL question, but maybe someone here can help. Any help would be appreciated!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That is because Cacti doesn't use RRDTool to calculate 95th Percentile. It has internal functions that it uses to calculate the values and then place them on the graph.

Check out: http://forums.cacti.net/viewtopic.php?t=19887
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests