[rrd-users] Re: graph question

Fauteux, Joe Joe.Fauteux at paymentech.com
Thu Dec 18 18:55:41 MET 2003


not quite sure how to answer that question but here is the rrd portion of my shell script - 

   if [ ! -f /d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd ]
        then
            /usr/local/rrdtool/bin/rrdtool \
            create /d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd \
                  DS:slmmodems:GAUGE:600:0:24 \
                  DS:tammodems:GAUGE:600:0:24 \
                  DS:dalmodems:GAUGE:600:0:24 \
                  RRA:LAST:0.5:1:600 \
                  RRA:LAST:0.5:6:700 \
                  RRA:LAST:0.5:24:775 \
                  RRA:LAST:0.5:288:797 \
                  RRA:AVERAGE:0.5:1:600 \
                  RRA:AVERAGE:0.5:6:700 \
                  RRA:AVERAGE:0.5:24:775 \
                  RRA:AVERAGE:0.5:288:797 \
                  RRA:MAX:0.5:1:600 \
                  RRA:MAX:0.5:6:700 \
                  RRA:MAX:0.5:24:775 \
                  RRA:MAX:0.5:288:797
        fi

        /usr/local/rrdtool/bin/rrdtool \
         update /d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd \
                N:$SLMACS2:$TAMACS1:$DALACS1

        echo $SLMACS2':'$TAMACS1':'$DALACS1

# Start Graph
                        /usr/local/rrdtool/bin/rrdtool graph /d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.gif \
                        --title "Modem Usage for AS5300's"  \
                        --start end-2days     \
                        --vertical-label "Modems In Use"    \
                        --color BACK#FFE4B5                       \
                        --color CANVAS#F5F5F5                      \
                        --color GRID#F4A460                       \
                        --color FONT#800000                       \
                        --color FRAME#0000FF                      \
                        --imgformat PNG                           \
                        --width 380                               \
                        --height 200                              \
                        DEF:slmmodems=/d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd:slmmodems:LAST \
                        DEF:tammodems=/d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd:tammodems:LAST \
                        DEF:dalmodems=/d3/mrtg/OUTPUT/RRD/DIALUP/as5300s.rrd:dalmodems:LAST \
                        COMMENT:"\n"                              \
                        COMMENT:"  Description        CURRENT     MAX       AVG\n" \
                        COMMENT:"\n"                                          \
                        AREA:slmmodems$color_blue:"Slmacs2   \: "      \
                        GPRINT:slmmodems:LAST:"%6.0lf %s"                  \
                        GPRINT:slmmodems:MAX:"%6.0lf %s"                   \
                        GPRINT:slmmodems:AVERAGE:"%6.0lf %s"               \
                        COMMENT:"\n"                                      \
                        STACK:tammodems$color_dskyblue:"Tamacs1   \: "    \
                        GPRINT:tammodems:LAST:"%6.0lf %s"                \
                        GPRINT:tammodems:MAX:"%6.0lf %s"                 \
                        GPRINT:tammodems:AVERAGE:"%6.0lf %s"             \
                        COMMENT:"\n"                                      \
                        STACK:dalmodems$color_dodgerblue:"Dalacs1   \: "    \
                        GPRINT:dalmodems:LAST:"%6.0lf %s"                 \
                        GPRINT:dalmodems:MAX:"%6.0lf %s"                  \
                        GPRINT:dalmodems:AVERAGE:"%6.0lf %s"             \
                        COMMENT:"\n"                                      \
                        COMMENT:"\n"                                      \
                        COMMENT:"Generated On $date at $time"           \
                        COMMENT:"\n"                           
-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of Felipe Piccirilo
Sent: Thursday, December 18, 2003 11:37 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: graph question



depends.., how did you create the rrd?

if you had a regular numbers of modems, I sugest you to use MIN:MAX = 0:'number of modems' to avoid problems...

just an ideia

regards

=================================
Felipe Piccirilo  
piccirilo at gruponet.com.br
Dpto. de Desenvolvimento
=================================
GrupoNet Tecnologia Ltda
www.gruponet.com.br
=================================



On Thu, 18 Dec 2003 11:25:52 -0500
"Fauteux, Joe" <Joe.Fauteux at paymentech.com> wrote:

> Im graphing "modems in use" on our 3 Cisco AS5300's  -  when the graph gets=
>  created the 1st value is some outrageous number followed by an "m" - as in=
>  "980 m" - the other two vlaues are ok - I'm guessing this may have somethi=
> ng to do with a zero value returned but im not sure - any ideas?
> =20
> thanks
  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above.  If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments.  If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer.

--
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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list