[mrtg] Re: How to measure Network Utilisation Percentage in MRTG

Meng Keng Lee mengkenglee at yahoo.com
Wed Jun 16 03:01:14 MEST 2004


Hello Eric,
Below is my MRTG configuration:
Target[A2RT01.Fa4_0_0.load]: #Fa4/0/0:ncspublic at 192.168.130.250: 
SetEnv[A2RT01.Fa4_0_0.load]: MRTG_INT_IP="192.168.130.250" MRTG_INT_DESCR=""
Directory[A2RT01.Fa4_0_0.load]: A2RT01
YLegend[A2RT01.Fa4_0_0.load]: Link Utilization
#kilo[A2RT01.Fa4_0_0.load]: 1024
#ShortLegend[A2RT01.Fa4_0_0.load]: bps
Legend1[A2RT01.Fa4_0_0.load]: Utilizaiton (In)
Legend2[A2RT01.Fa4_0_0.load]: Utilization (Out)
Legend3[A2RT01.Fa4_0_0.load]: 
Legend4[A2RT01.Fa4_0_0.load]: 
LegendI[A2RT01.Fa4_0_0.load]:  In Utilization: 
LegendO[A2RT01.Fa4_0_0.load]:  Out Utilization: 
#Unscaled[A2RT01.Fa4_0_0.load]: ywmd
MaxBytes[A2RT01.Fa4_0_0.load]: 12500000
Options[A2RT01.Fa4_0_0.load]: growright,bits,nopercent
ThreshMaxi[A2RT01.Fa4_0_0.load]:70
ThreshProgI[A2RT01.Fa4_0_0.load]:e:\mrtg\bin\thresholdalert.pl
ThreshProgOKI[A2RT01.Fa4_0_0.load]:e:\mrtg\bin\thresholdalert.pl
ThreshMaxO[A2RT01.Fa4_0_0.load]:70
ThreshProgO[A2RT01.Fa4_0_0.load]:e:\mrtg\bin\thresholdalert.pl
ThreshProgOKO[A2RT01.Fa4_0_0.load]:e:\mrtg\bin\thresholdalert.pl
Title[A2RT01.Fa4_0_0.load]: A2RT01 #Fa4/0/0 Link Utilization
PageTop[A2RT01.Fa4_0_0.load]: <H1>A2RT01 #Fa4/0/0 Link Utilization</H1>
   <TABLE>
    <TR><TD>System:</TD>     <TD>A2RT01 in </TD></TR>
    <TR><TD>Maintainer:</TD> <TD></TD></TR>
    <TR><TD>Description:</TD><TD>  </TD></TR>
    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
    <TR><TD>ifName:</TD>     <TD>Fa4/0/0</TD></TR>
    <TR><TD>Max Speed:</TD>  <TD>100.000 Mbits/s</TD></TR>
    <TR><TD>Ip:</TD>         <TD>192.168.130.250 ()</TD></TR>
  </TABLE>
 
Am I correct to say that my perl script will work if it hits above 70% of the Input and Output Utilisation?
 
Thanks for your help
Eric Brander <Eric_Mailing_List at rednarb.com> wrote:
Meng Keng Lee wrote:
> Sorry, maybe I should make myself clearer, what I want to do is to re-calculate the network utilisation in percentage, after calculating it into percentage, I can then do threshold monitoring, above 70%, alert user etc. That is why I use the formula below
> Target[192.168.133.1_1]: (ifInOctets.1&ifOutOctets.1:ncspublic at 192.168.133.1/ifSpeed.1&ifSpeed.1:ncspublic at 192.168.133.1) * 800
> MaxBytes[192.168.133.1_1]: 100
> 

MRTG does % of MaxBytes and displays it. MRTG can also do threshold 
checking on that %. I use it all the time. Just use ThreshMaxO or 
ThreshMaxI if your looking for a max threshold. and for the number, put 
70%. No need to reinvent the wheel. Get rid of that math on the target 
line and just monitor as normal.

HTH,

Eric Brander

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi


		
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list