GPRINT and CDEF issues

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 »

That looks all very reasonable. The 8,* is required to convert Octest to bits as the ifSpeed is given in bits
mgeni wrote:GPRINT:cdefa:MAX:"Maximum Interface Speed%8.2lf%s"
This one should be replaced by a COMMENT giving |query_ifSpeed|. Currently, it does not show ifSpeed but the current MAX of traffic seen
Reinhard
mgeni
Cacti User
Posts: 65
Joined: Fri Mar 25, 2005 8:12 am

Post by mgeni »

Thanks I was able to change to comment |if_speed|. However, i do notice the comment does not allow CDEF function of converting to bits, why? i tried |ifspeed*8|, |ifspeed|,8,*, |ifspeed|*8... none of this fixes it. (I was trying to present it as 32M) Another strange issue I am seeing, i see Utilizatioin going past 100 Percent on Max. What could be causing this?



Here is my Debug
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Traffic Ca3/0-downstream" \
--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:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/central_ubr-1_traffic_in_2889.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefc=a,30341646,/,100,*,8,* \
AREA:cdefa#002A97FF:"Outbound" \
GPRINT:cdefa:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefc:LAST:"%3.2lf%%" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefc:AVERAGE:"%8.2lf %%" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s" \
GPRINT:cdefc:MAX:"%8.2lf %%\n" \
COMMENT:"****************************************************************************\n" \
COMMENT:"Maximum Interface Speed 30341646"
Attachments
C:\Documents and Settings\Dipen Patel\My Documents\My Pictures\untitled.png
C:\Documents and Settings\Dipen Patel\My Documents\My Pictures\untitled.png
untitled.png (647.81 KiB) Viewed 1076 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Cacti does not support CDEFs on comments, nor does RRDTool, sorry
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest