[rrd-users] Re: RRD Tutorial - Question -Real World Example

Alex van den Bogaerdt alex at ergens.op.HET.NET
Fri Mar 1 11:41:09 MET 2002


spiekey wrote:

> i have SuSE73, and lo, eth0. I want to monitor my traffic.
> I tried to make such a "Real Worl example", the one in the tutorial.
> But i dont really know how to handle this:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> (is this meant to be a script?)

Not really.  It is a pseudo script.  Its only purpose is to show you
what to do, in English.  You have to translate it into your favorite
computer language.

> while not the end of the universe
>    do
>       get result of
>          snmpget router community 2.2.1.10.4
>       into variable $in
>       get result of
>          snmpget router community 2.2.1.16.4
>       into variable $out
>       rrdtool update myrouter.rrd N:$in:$out
>       wait for 5 minutes
>    done
> ~~~~~~~~~~~~~~~~~~~~~~~~~~

Do this step by step.  First start using the snmpget command.  Make
sure you get valid output.  Use command line options/flags to the
snmpget command so that you get only the resulting number.  If
necessary use a filter (such as awk).

Next step is to put this output in variable "in" and "out".

When this works you should be able to generate the proper command
for rrdtool.  When you are able to echo the entire command to screen
you should also be able to actually execute this command.

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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