[rrd-users] Re: Get a specific Value in a RRD database

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Thu Jun 15 12:11:59 MEST 2000


=?ISO-8859-1?Q?Jo=E3o_Pedro_Rodrigues?= wrote:

> How can y get a specific value from a rrd database (not for grafic) to chect
> it. For example y want collect a number of calls in a router in a Primary
> Rate Access but y want to alert for mail in case of the number of calls is
> zero during mutch time because I don't whatch to the graphic every time.
> It is possible?.

You could do something with CDEF. Do something like:

a) If number-of-calls != 0 then change the number into 100
b) If the average number of calls < 100 during 100 seconds, then there
   were not enough calls. This number can be printed using a PRINT
   statement --> no graph.

You can adjust the numbers as you like.  How does it work?
a) you define zero calls to be 0, all other number of calls to be 100.
   This means that you only look at calls made or no calls made.
b) You can look at any amount of time by using --start and --end. If the
   average is under a certain treshold this means that there were not
   enough periods where calls were made

regards,
-- 
   __________________________________________________________________
 / 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 |
+----------------------------------------------------------------------+
| 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



More information about the rrd-users mailing list