Ok I am begging for pecentage :)

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

Moderators: Developers, Moderators

Bisonlux
Cacti User
Posts: 79
Joined: Wed Jul 23, 2003 4:35 pm
Location: Luxembourg

Post by Bisonlux »

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.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

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 !
Hi again,
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
untitled3.jpg (85.11 KiB) Viewed 5688 times
scurcio
Posts: 3
Joined: Wed Jan 28, 2004 3:02 pm

percentage in graph

Post by scurcio »

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.
Bisonlux
Cacti User
Posts: 79
Joined: Wed Jul 23, 2003 4:35 pm
Location: Luxembourg

Post by Bisonlux »

Check this out: http://www.raxnet.net/board/viewtopic.php?t=2994

You have an example with a graph.
scurcio
Posts: 3
Joined: Wed Jan 28, 2004 3:02 pm

Percentage in graph

Post by scurcio »

Bisonlux wrote:Check this out: http://www.raxnet.net/board/viewtopic.php?t=2994

You have an example with a 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.

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.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Finally :)
My problem has been solved. Thank you Bisonlux and Ian.
I am really very grateful to you.
After 0.8.5, percentage problem completely solverd.
In attachment you can see last version graph.
Attachments
Final.jpg
Final.jpg (90.3 KiB) Viewed 5594 times
skt
Posts: 14
Joined: Thu Nov 06, 2003 10:23 am

XML Files?

Post by skt »

Hello TFC,

Do you have the xml files for tese new graphs? If you do, can you please post them?

Thanks,

SKT
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: XML Files?

Post by TFC »

skt wrote:Hello TFC,

Do you have the xml files for tese new graphs? If you do, can you please post them?

Thanks,

SKT
Nope,
But I can post the summary tomorrow
nydoofus
Posts: 7
Joined: Mon Jan 26, 2004 1:31 am

Re: XML Files?

Post by nydoofus »

TFC wrote:
skt wrote:Hello TFC,

Do you have the xml files for tese new graphs? If you do, can you please post them?

Thanks,

SKT
Nope,
But I can post the summary tomorrow
Could you? I would love to have percentage capability.
anthony.warren
Posts: 31
Joined: Fri Nov 22, 2002 10:50 am
Location: Rochester, UK

Post by anthony.warren »

If you could post the XML files, it would make my day.

This addition would be really helpful to me.

Anthony Warren
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I don't have XML file.But, if you look at the attachement, I hope it will help you.
Attachments
Book1.zip
(180.23 KiB) Downloaded 289 times
skt
Posts: 14
Joined: Thu Nov 06, 2003 10:23 am

Broken Percentage

Post by skt »

I tried your posted instructions. When applying the GPRINT Preset to the graph template all of my bits / sec graphs break. Any ideas?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: Broken Percentage

Post by TFC »

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?
can you debug graph? and post it the error..
skt
Posts: 14
Joined: Thu Nov 06, 2003 10:23 am

Graph Code

Post by skt »

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
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Here is mine :
/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"
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests