[rrd-users] script help

Neil Calvert ncalvert at cabletron.com
Mon Jan 24 19:47:21 MET 2000


Hi all,

I've been working on a graph generation script for the last couple days
and it's starting to make me tear my hair out. Every time I run this
script, I get a core dump error. The core file is produced by the
script, not by rrdtool, so I think the problem is in my syntax
somewhere..

I was hoping someone could take a look at the command and tell me if I'm
doing something wrong. The script takes in 7 arguments :

rrd_frame_graph_generator <dbase file> <TRAFFIC|STATUS|ERROR|CONGESTION>
<bandwidth in bits> <CIR in bits> <HOUR|DAY|WEEK|MONTH|YEAR> <output
filename> <output title>

I run it with the DAY option and it coredumps. This is the command line
from the case statement that is run when I select Day. The command line
syntax I am using is

rrd_frame_graph_generator /path to rrd/rrd_file.rrd TRAFFIC 56000 32000
DAY /path to output file/output.filename "Output title"

When I use that exact syntax with the other cases (Hour,Week,Month,Year)
it works fine so I am thinking it is something in theday statement.
Could someone check it out and let me know if I'm doing something wrong?

DAY|day) `/apps/RRD/bin/rrdtool graph
$6-d-frame-traffic.png -s -86400 -v Bits -a PNG -t "$7 - last 24
Hours" -x HOUR:1:HOUR:6:HOUR:1:0:%H --alt-y-grid -w 500 -h 200
DEF:inoct=$1:inoctets:AVERAGE DEF:outoct=$1:outoctets:AVERAGE
CDEF:inbit=inoct,8,* CDEF:outbit=outoct,8,*
CDEF:inbandw=inoct,8,*,$3,/,100,* CDEF:outbandw=outoct,8,*,$3,/,100,*
AREA:inbit#00FF00:"Bits  in per second"
GPRINT:inbit:AVERAGE:"Average\:%6.2lf %sb/s"
GPRINT:inbit:MAX:"Max\:%6.2lf %sb/s" GPRINT:inbit:LAST:"Now\:%6.2lf
%sb/s\n" LINE1:outbit#0000FF:"Bits out per second"
GPRINT:outbit:AVERAGE:"Average\:%6.2lf %sb/s"
GPRINT:outbit:MAX:"Max\:%6.2lf %sb/s" GPRINT:outbit:LAST:"Now\:%6.2lf
%sb/s\n" COMMENT:"\s" HRULE:$4#FF0000:"Link CIR\:$littlecir kb/s"
COMMENT:"\s" COMMENT:"Bandwidth Utilization\c" COMMENT:"\s"
GPRINT:inbandw:AVERAGE:"Inbound  Average\:%6.2lf%%"
GPRINT:inbandw:MAX:"Inbound  Max\:%6.2lf%%" GPRINT:inbandw:LAST:"Current
Inbound\:%6.2lf%%\n" GPRINT:outbandw:AVERAGE:"Outbound
Average\:%6.2lf%%" GPRINT:outbandw:MAX:"Outbound Max\:%6.2lf%%"
GPRINT:outbandw:LAST:"Current Outbound\:%6.2lf%%" ` ;;

--
Neil Calvert
Senior Network Management Analyst
Cabletron Systems Remote Services
+========================+ +====+
| 1-603-337-3516 : Office \ \   |
| 1-603-781-5586 : Cell    \ \  |
| 1-888-451-9898 : Pager    \ \ |
+============================+ ++

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users



More information about the rrd-users mailing list