[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Bandwidth Tracking



>I have installed MRTG on my RAQ3i, and it works perfectly with the site that
>has its own IP. Actually, the cfgmaker refused to work, and hence I made the
>cfg file manually. However, I also need to software to run for the sites
>that are shareing an IP address. When I tried to make the cfg file (manually
>and automatically), it continuousely generates errors and does not run !
>Could you explain the cfg file or perhaps give me a sample cfg file, so that
>I can see who it works with multiple name based sites.

Pradeep,

First, I normally put MRTG on a box *separate* from the one I'm
monitoring for a number of reasons, including the induced load of
running those scripts.

Below is an email I privately shared, but am now sending to the list in
general, of a sample config file.  I don't know why cfgmaker isn't
working for you, but you may want to debug *that* before attempting MRTG
simply because if that part doesn't work on your machine, I've got my 
doubts about anything else.

PS:
Actually, the name is "JT", "Arf" is simply a greeting.
  
  From lfm Wed Feb  7 15:52:22 2001
  Subject: Re: Bandwith
  Date: Wed, 7 Feb 2001 15:52:22 -0600 (CST)
  
  Here's an example of the configuration file I use for a cobalt box.  If I
  were you, I'd use "cfgmaker" to get this for me.  That will probe 
  everything that the Cobalt box has for SNMP.  Like this:
  
  cfgmaker 'public@xxxxxxxxxxxxxxx'
  
  Which produces something like the following (though you always have to add
  the IconDir and WorkDir directives):
  
  IconDir: /usr2/apache_1.3b3/htdocs/mrtg/icons
  WorkDir: /usr2/apache_1.3b3/htdocs/mrtg
  
  ######################################################################
  # Description: Linux version 2.0.34 (root@xxxxxxxxxxxxxxx) (gcc version 2.7.2
  ) #2 Tue Mar 30 23:14:42 CST 1999
  #     Contact: Not Configured
  # System Name: myserver.my.net
  #    Location: Not Configured
  #.....................................................................
  ########
  ######## This Interface is one of the following
  ######## - administratively not UP
  ######## - it is in test mode
  ######## - it is a softwareLoopback interface
  ######## - has a unrealistic speed setting
  ######## It is commented out for this reason.
  ########
  #
  # Target[myserver.my.net.1]: 1:public@xxxxxxxxxxxxxxx
  # MaxBytes[myserver.my.net.1]: 2500000
  # Title[myserver.my.net.1]: myserver.my.net (No hostname defined for IP ad
  dress): lo
  # PageTop[myserver.my.net.1]: <H1>Traffic Analysis for lo
  #  </H1>
  #  <TABLE>
  #    <TR><TD>System:</TD><TD>myserver.my.net in Not Configured</TD></TR>
  #    <TR><TD>Maintainer:</TD><TD>Not Configured</TD></TR>
  #    <TR><TD>Interface:</TD><TD>lo (1)</TD></TR>
  #    <TR><TD>IP:</TD><TD>No hostname defined for IP address (0.0.0.0)</TD></TR>
  #    <TR><TD>Max Speed:</TD>
  #        <TD>2500.0 kBytes/s (softwareLoopback)</TD></TR>
  #   </TABLE>
  #
  #---------------------------------------------------------------
  
  Target[myserver.my.net.2]: 2:public@xxxxxxxxxxxxxxx
  MaxBytes[myserver.my.net.2]: 120000
  Title[myserver.my.net.2]: myserver.my.net (All Network Traffic): eth0
  PageTop[myserver.my.net.2]: <H1>Traffic Analysis for eth0
   </H1>
   <TABLE>
     <TR><TD>System:</TD><TD>myserver.my.net (Cobalt RAQ)</TD></TR>
     <TR><TD>Maintainer:</TD><TD>admin@xxxxxx</TD></TR>
     <TR><TD>Interface:</TD><TD>eth0 (2)</TD></TR>
     <TR><TD>IP:</TD><TD>myserver.my.net (209.100.167.13)</TD></TR>
     <TR><TD>Max Speed:</TD>
         <TD>960.0 kBytes/s (RADSL)</TD></TR>
    </TABLE>
  Unscaled[myserver.my.net.2]: ym
  WithPeak[myserver.my.net.2]: ymw
  Options[myserver.my.net.2]: growright, bits
  
  #---------------------------------------------------------------
  
  Target[myserver.my.net.3]: 3:public@xxxxxxxxxxxxxxx
  MaxBytes[myserver.my.net.3]: 120000
  Title[myserver.my.net.3]: myserver.my.net (virtualdomain1.com): eth0:0
  PageTop[myserver.my.net.3]: <H1>Traffic Analysis for eth0:0
   </H1>
   <TABLE>
     <TR><TD>System:</TD><TD>myserver.my.net (Cobalt RAQ)</TD></TR>
     <TR><TD>Maintainer:</TD><TD>user1@xxxxxxxxxxxxxxxxxx</TD></TR>
     <TR><TD>Interface:</TD><TD>eth0:0 (3)</TD></TR>
     <TR><TD>IP:</TD><TD>virtualdomain1.com (192.169.100.1)</TD></TR>
     <TR><TD>Max Speed:</TD>
         <TD>960.0 kBytes/s (RADSL)</TD></TR>
    </TABLE>
  Unscaled[myserver.my.net.3]: ym
  WithPeak[myserver.my.net.3]: ymw
  Options[myserver.my.net.3]: growright, bits
  
  #---------------------------------------------------------------
  
  Target[myserver.my.net.4]: 4:public@xxxxxxxxxxxxxxx
  MaxBytes[myserver.my.net.4]: 120000
  Title[myserver.my.net.4]: myserver.my.net (www.virtualdomain2.com): eth0:1
  PageTop[myserver.my.net.4]: <H1>Traffic Analysis for eth0:1
   </H1>
   <TABLE>
     <TR><TD>System:</TD><TD>myserver.my.net (Cobalt RAQ)</TD></TR>
     <TR><TD>Maintainer:</TD><TD>user2@xxxxxxxxxxxxxxxxxx</TD></TR>
     <TR><TD>Interface:</TD><TD>eth0:1 (4)</TD></TR>
     <TR><TD>IP:</TD><TD>virtualdomain2.com (192.169.100.2)</TD></TR>
     <TR><TD>Max Speed:</TD>
         <TD>960.0 kBytes/s (RADSL)</TD></TR>
    </TABLE>
  Unscaled[myserver.my.net.4]: ym
  WithPeak[myserver.my.net.4]: ymw
  Options[myserver.my.net.4]: growright, bits
  
  
-Arf, JT
------------------------------------------------------------------------------
  "If I knew what was going on, I'd *really* be indignant!"
                                   - Crow, "Mystery Science Theatre 3000"

 Join the UniServe Seti@Home Team: http://www.unisrv.net/computerguys/seti

Unix, Networking and ISP Consulting                             lfm@xxxxxxxxxx
http://www.unisrv.net            MSN IM: S_A_Alis@xxxxxxxxxxx      ICQ 9099687
FurryMUCK (muck.furry.org 8888): S'A'Alis    www.unisrv.net/lfm   MSTie# 21756