[mrtg] Percentage calculation

Lionel Billiet lionel.billiet at upmf-grenoble.fr
Mon Oct 4 12:51:34 MEST 1999


> i like this setup, because it shows collisions and frames counts on the same 
> graph:
>
> Target[xxxxx_port-x.collisions]: 
> 1.3.6.1.2.1.16.1.1.1.13.port&1.3.6.1.2.1.16.1.1.1.5.port:community at host
>
> i usually see a trend between the frames and the collisions...
>
> matt


So, if I want the percentage of collisions, I could use the formula:
Collisions/FrameCount*100

I tried with:
Target[collch]:
1.3.6.1.2.1.16.1.1.1.13.port&1.3.6.1.2.1.16.1.1.1.13.port:public at x.x.x.x/1.3.6.1.2.1.16.1.1.1.5.port&1.3.6.1.2.1.16.1.1.1.5.port:public at x.x.x.x*100
AbsMax[collch]: 100
MaxBytes[collch]: 100
Options[collch]: nopercent
(I don't think the perhour option would change something there)


I doesn't work. What is the exact syntax for calculating percentages
with MRTG?
(yes, it's my first calculation attempt :-)




                           Lionel BILLIET
 Centre de Ressources Informatiques - Universite Pierre Mendes-France
  adr. geograph.: 151, rue des Universites - 38400 St Martin d'Heres
          adresse postale: B.P. 47 - 38040 Grenoble Cedex 9
       tel.: (33) 04 76 82 59 10      fax: (33) 04 76 82 83 13
                   Web: http://www.upmf-grenoble.fr

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list