[mrtg] Re: multiply a value

Chairman of the Bored list-mrtg-talk at L7.org
Fri Feb 18 10:39:34 MET 2000


At 06:23 PM 2/18/00 +0900, Bastien Raich wrote:
>I would like to count the numbers of errors on a line every 5 minutes. I
>can't use neither the "gauge" function nor the "absolute" one. I am then
>using the default one, but it divides all values per 300 to get a value
>"per second".
>
>I would like to have this value per 5 minutes simply.
>
>is there a way to multiply the value to obtain such a thing ?
>
>I know that the "perhour" and "perminute" options exist, but they only
>multiply by 60 or 3600.
>
>using the "bits" option will also multiply by 8, but I want 300 !!
>
>any idea ??

sure. you can do math on an interface, it's in the docs.
like if the number you have now is what you want if you
multiplied it by 300, just do *300 
-dd

                                \\\\\//                                    
       \\|//       _\\|//_      |     |      _\\|//_       \\|//           
       (@ @)      (' 0-0 ')     (.) (.)     (' @-@ ')      (o-o)           
+-=oOOo-(_)-oOOo=oo0=(_)=0oo=oOO=-(_)-=OOo=oo0=(_)=0oo=oOOo-(_)-oOOo=-+    
                | Level Seven inc. http://www.L7.net/ |                 /"\
   The worlds "one stop" InterNetworking Provider 1 (360) 753 - 3556    \ /
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+  X 
ASCII Ribbon campaign against HTML E-Mail >- - - - - - - - - - - - - -> / \ 

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



More information about the mrtg mailing list