[mrtg] Re: Ip accounting .

Sawyer, David david.sawyer at uk.mckhboc.com
Thu Dec 6 14:29:20 MET 2001


Traffic (ifInOctets and ifOutOctets) are poll by default.

You also don't need to change the 'Legend' parameters as this is also
standard.

For standard traffic the following would be enough...

Target[device]: 24:public at router1
Options[device]: growright, bits
## For MaxBytes divide the bandwidth by 8 (eg 64,000Kb / 8 = 8000KB)
MaxBytes[device]: 8000
Title[device]: Add a title here
PageTop[device]: <H1>Title for the top of the page</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>Interface atm1</TD></TR>
    <TR><TD>Maintainer:</TD><TD>NetOps</TD></TR>
    <TR><TD>Interface:</TD><TD>at-1/0/0</TD></TR>
    <TR><TD>IP:</TD><TD>10.100.201.3</TD></TR>
   </TABLE>


I read the mail from Sharon as though so wanted to monitor the ip accounting
on an interface.

Sharon,
To create a standard traffic config use 'cfgmaker' or 'cfgmaker.cisco' from
the contrib folder.


-----Original Message-----
From: Andreas Nolte [mailto:anolte at ccietac.de]
Sent: 06 December 2001 13:05
To: Sharon Segal
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Ip accounting .




Hi,

ok. You need the index of the interfaces you want to monitor. You can do a
snmpwalk ipaddress community interfaces, then you get everything about the
interfaces in your Cisco.


Here is a sample configuration file to monitor the inIfOctets and the
outIfOctets of an interface. First you should check the correct interface
index of the port to monitor.

******************************************
#
Target[ffm1.1]:1.3.6.1.2.1.2.2.1.10.24&1.3.6.1.2.1.2.2.1.16.24:public at router
1
Options[ffm1.1]: growright, bits, nopercent
MaxBytes[ffm1.1]: 155520000
AbsMax[ffm1.1]: 155520000
Suppress[ffm1.1]: y
Title[ffm1.1]: Interface atm1
YLegend[ffm1.1]: Bits/sec
ShortLegend[ffm1.1]: B/s
Legend1[ffm1.1]: In Bits/sec
Legend2[ffm1.1]: Out Bits/sec
LegendI[ffm1.1]: &nbsp;In Bits/sec:
LegendO[ffm1.1]: &nbsp;Out Bits/sec:
PageTop[ffm1.1]: <H1>Interface atm1
  </H1>
  <TABLE>
    <TR><TD>System:</TD><TD>Interface atm1</TD></TR>
    <TR><TD>Maintainer:</TD><TD>NetOps</TD></TR>
    <TR><TD>Interface:</TD><TD>at-1/0/0</TD></TR>
    <TR><TD>IP:</TD><TD>10.100.201.3</TD></TR>
   </TABLE>
# 
****************************************************************

Where 1.3.1.6.1.2.1.2.2.1.10.24 is under the MIB-2 branch of the MIB tree.
10 are the ifInOctets and 24 is the interface index.
16 are the ifOutOctets and 24 is the interface index.

"public" is the community and "router1" the remote router to monitor.


----------------------------------------------------------------------------
The information contained in this e-mail is confidential and is intended
only for the named recipient(s). If you are not the intended recipient you
must not copy, distribute, or take any action or reliance on it.
If you have received this e-mail in error, please notify the sender.
Any unauthorised disclosure of the information contained in this e-mail
is strictly prohibited.
----------------------------------------------------------------------------



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