Here's what I did:<br><br>In hobbitgraph.cfg add these two stanzas:<br>[oradb]<br>        FNPATTERN oradb(.*).rrd<br>        TITLE Oracle Tablespace Utilitzation<br>        YAXIS % Full<br>        DEF:p@RRDIDX@=@RRDFN@:pct:AVERAGE<br>
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>        -u 100<br>        -l 0<br>        GPRINT:p@RRDIDX@:LAST: \: %5.1lf (cur)<br>        GPRINT:p@RRDIDX@:MAX: \: %5.1lf (max)<br>        GPRINT:p@RRDIDX@:MIN: \: %5.1lf (min)<br>
        GPRINT:p@RRDIDX@:AVERAGE: \: %5.1lf (avg)\n<br>[oradb1]<br>        FNPATTERN oradb(.*).rrd<br>        TITLE Oracle Tablespace Utilitzation<br>        YAXIS Used(MB)<br>        DEF:p@RRDIDX@=@RRDFN@:used:AVERAGE<br>
        LINE2:p@RRDIDX@#@COLOR@:@RRDPARAM@<br>        -l 0<br>        GPRINT:p@RRDIDX@:LAST:\: %5.1lf (cur)<br>        GPRINT:p@RRDIDX@:MAX:\: %5.1lf (max)<br>        GPRINT:p@RRDIDX@:MIN:\: %5.1lf (min)<br>        GPRINT:p@RRDIDX@:AVERAGE:\: %5.1lf (avg)\n<br>
<br>In hobbitserver.cfg:<br>  - Add oradb (or whatever you bb-roracle reports as) to the TEST2RRD line<br>  - Add oradb and oradb1 to the GRAPHS line<br><br>In hobbitlaunch.cfg:<br>  - Add "--extra-script=/home/hobbit/server/ext/extra_rrd.sh --extra-tests=oradb" to the CMD line in [rrdstatus] stanza<br>
  - Add "--extra-script=/home/hobbit/server/ext/extra_rrd.sh --extra-tests=oradb" to the CMD line in [rrdata] stanza<br><br>Create $BBHOME/server/ext/extra_rrd.sh as:<br>#!/bin/bash<br><br># Input parameters: Hostname, testname (column), and messagefile<br>
HOSTNAME="$1"<br>TESTNAME="$2"<br>FNAME="$3"<br><br>case $TESTNAME in<br>  oradb) # oradb<br>        grep " Tablespace " $FNAME | grep -v "Tablespace check disabled" | while read LINE<br>
        do<br>          TSNAME=`echo $LINE | awk '{print $4}'`<br>          TSSIZE=`echo $LINE | awk '{print $6}' | cut -f1 -d"M"`<br>          #TSPCTUSED=`echo $LINE | awk '{print $9}'|cut -f1 -d"%"|cut -f2 -d">"`<br>
          TSPCTUSED=`echo $LINE | awk '$2 ~ /\&green/ {print $9}; $2 ~ /\&yellow/ {print $10}; $2 ~/\&red/ {print $10}' |cut -f1 -d"%"|cut -f2 -d">"`<br>          TSUSED=`echo $TSSIZE $TSPCTUSED | awk '{print $1*$2/100}'`<br>
<br>          # The RRD dataset definitions<br>          echo "DS:pct:GAUGE:1200:0:100"   #heartbeat = 1200 (20 minutes) since bb-roracle runs 10 minutes -- Setting lower could cause gaps in graphs<br>          echo "DS:used:GAUGE:1200:0:U"   #heartbeat = 1200 (20 minutes) since bb-roracle runs 10 minutes -- Setting lower could cause gaps in graphs<br>
<br>          # The filename<br>          echo "oradb,${TSNAME}.rrd"<br><br>          echo "$TSPCTUSED:$TSUSED"<br><br>          #echo "$TSNAME pctused=$TSPCTUSED-- used=$TSUSED--" >> /tmp/oradb.rrd.out  #debug/testing statement<br>
        done<br><br>  *)    exit 0<br>        ;;<br><br>esac<br>exit 0<br>#end of extra-rrd.sh<br clear="all"><br>---------------<br><br>Robert Herron -- the "R.Herron" in bb-roracle.sh revision history.<br>