Ok I am begging for pecentage :)
Moderators: Developers, Moderators
I am sure there is a bug in Cacti, because the first time I make a graph, I have the same behaviour (same percentage values for both data sources).
[see my post: Posted: Wed Dec 31, 2003 6:54 pm Post subject: Percent and a little bug]
If a have time I will check the php code where the rrdtool graph is generated.
[see my post: Posted: Wed Dec 31, 2003 6:54 pm Post subject: Percent and a little bug]
If a have time I will check the php code where the rrdtool graph is generated.
Hi again,Bisonlux wrote:TFC,
The zip file contains all the definitions/configurations to display the graph as you post in the last days.
Give me a feedback with your result.
Good luck !
I did your instruction. And I read your answer in
http://www.raxnet.net/board/viewtopic.php?t=3030
I changed my rrd.php file. But graph still divide max value as 100M
You can see the graph that some wrong calculation exists
--------------------
For example:
For calculating Max. Inbound Utility:
(62,13Mbit/155Mbit)*100=40.08% (this is correct calculation)
(62,13Mbit/100Mbit)*100=62.13% (this is our cdef calculation)
I mean our cdef still sees max value as 100Mbit not 155Mbit.
Help Us Ian
- Attachments
-
- untitled3.jpg (85.11 KiB) Viewed 5687 times
percentage in graph
I see where you have the percentage in the bottom of the graph but can you present the graph itself in a percentage ?
I have a gigabit line and I just want to say its gigabit and then have the graph itself show 1-100 percent in use and then have the bottom show min/average/max in percent.
I have a gigabit line and I just want to say its gigabit and then have the graph itself show 1-100 percent in use and then have the bottom show min/average/max in percent.
Percentage in graph
I want to have the graph it self show from 0-100% and then have it show the percentage in utilization be on the graph instead of below in just the numbers. I need this so a manager can easily understand it.Bisonlux wrote:Check this out: http://www.raxnet.net/board/viewtopic.php?t=2994
You have an example with a graph.
The graphical part of the graph should show 0-100% utilization and then the bottom of the graph can show the mbits or kbits in min/average/max.
XML Files?
Hello TFC,
Do you have the xml files for tese new graphs? If you do, can you please post them?
Thanks,
SKT
Do you have the xml files for tese new graphs? If you do, can you please post them?
Thanks,
SKT
Re: XML Files?
Nope,skt wrote:Hello TFC,
Do you have the xml files for tese new graphs? If you do, can you please post them?
Thanks,
SKT
But I can post the summary tomorrow
Re: XML Files?
Could you? I would love to have percentage capability.TFC wrote:Nope,skt wrote:Hello TFC,
Do you have the xml files for tese new graphs? If you do, can you please post them?
Thanks,
SKT
But I can post the summary tomorrow
-
- Posts: 31
- Joined: Fri Nov 22, 2002 10:50 am
- Location: Rochester, UK
Broken Percentage
I tried your posted instructions. When applying the GPRINT Preset to the graph template all of my bits / sec graphs break. Any ideas?
Re: Broken Percentage
can you debug graph? and post it the error..skt wrote:I tried your posted instructions. When applying the GPRINT Preset to the graph template all of my bits / sec graphs break. Any ideas?
Graph Code
Here it is:
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefbd=b,8,*,100000000,/,100,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:MAX:" Maximum\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s\n" \
COMMENT:"Max Bandwidth (bps): 45000000\n" \
COMMENT:"Interface IP Address: 144.228.154.150\n" \
COMMENT:"Last Updated: Tue 17 Feb 16:00:14 CST 2004\n" \
HRULE:45000000#FF0000:"" \
HRULE:45000000#FF0000:"" \
GPRINT:cdefbd:LAST:"Current Traffic Out Percent\:(%6.2If%%)"
Thanks,
SKT
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefbd=b,8,*,100000000,/,100,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:MAX:" Maximum\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s\n" \
COMMENT:"Max Bandwidth (bps): 45000000\n" \
COMMENT:"Interface IP Address: 144.228.154.150\n" \
COMMENT:"Last Updated: Tue 17 Feb 16:00:14 CST 2004\n" \
HRULE:45000000#FF0000:"" \
HRULE:45000000#FF0000:"" \
GPRINT:cdefbd:LAST:"Current Traffic Out Percent\:(%6.2If%%)"
Thanks,
SKT
Here is mine :
Please go to graph management section. Select one of the interface that you can not see and click it. Then click "Turn On Graph Debup Mode." link. And copy here what you see./usr/local/rrdtool-1.0.46/bin/rrdtool graph - \
--imgformat=PNG \
--start=end-604800 \
--end=1077090885 \
COMMENT:"From 2004-02-11 07:54:45 to 2004-02-18 07:54:45\c" \
COMMENT:"Graph Generated at 2004-02-18 07:54:45\c" \
--title="M 2B 7507 - Traffic - Fa1/1/0" \
--rigid \
--base=1000 \
--height=140 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/www/htdocs/cacti/rra/m_2b_7507_traffic_in_78.rrd":traffic_in:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/m_2b_7507_traffic_in_78.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
CDEF:cdefj=a,8,*,1000000000,/,100,* \
CDEF:cdefbb=a,8,*,1000000000,/,100,* \
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" \
COMMENT:"--INBOUND\n" \
GPRINT:cdefj:LAST:"Current Util \:(%6.2lf%%)\n" \
GPRINT:cdefj:AVERAGE:"Average Util \:(%6.2lf%%)\n" \
GPRINT:cdefbb:MAX:"Max. Util \:(%6.2lf%%)\n" \
COMMENT:"--OUTBOUND\n" \
GPRINT:cdefbb:LAST:"Current Util \:(%6.2lf%%)\n" \
GPRINT:cdefbb:AVERAGE:"Average Util \:(%6.2lf%%)\n" \
GPRINT:cdefbb:MAX:"Max. Util \:(%6.2lf%%)\n" \
COMMENT:"-Desc: 8540_4A Baglant -Speed: 100000000 bps -IP Address: 10.200.98.9\n"
Who is online
Users browsing this forum: No registered users and 3 guests