[mrtg] Some inquiries --- easy for all you mrtg experts

Saqib bin Sohail saqibbs at iee.org
Tue Apr 8 12:28:12 MEST 2003


i) i have got 100 Mbps cards but when I ran configmaker it generated
10mbps cards. Am i doing something wrong or its just an entry to display
which doesn't have any effect

ii) My snmpd.conf file is as follows.I thought the graphs would be
generated of the usage of my HardDisk but to my amazement the graphs
created were of Eth0 and Eth1.
	
	a) how is it possible? I need some explanation.
	b) do i need to just run the snmpd.conf with any configuration and get
the desired graphs through mrtg.cfg


# Created by 
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/html/mrtg/30003'
--global 'Options[_]: growright,bits' --ifref=ip public at 192.168.0.213


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

WorkDir: /var/www/html/mrtg/30003
Options[_]: growright,bits
Refresh: 10

######################################################################
# System: firewall.uet.edu.pk
# Description: Linux firewall.uet.edu.pk 2.4.18-14 #1 Wed Sep 4 13:35:50
EDT 2002 i686
# Contact: "Saqib bin Sohail"
# Location: PGRLAB
######################################################################


### Interface 1 >> Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: ''
###
### The following interface is commented out because:
### * it is a Software Loopback interface
# 
# Target[192.168.0.213_127.0.0.1]: /127.0.0.1:public at 192.168.0.213:
# SetEnv[192.168.0.213_127.0.0.1]: MRTG_INT_IP="127.0.0.1"
MRTG_INT_DESCR="lo"
# MaxBytes[192.168.0.213_127.0.0.1]: 1250000
# Title[192.168.0.213_127.0.0.1]: Traffic Analysis for 127.0.0.1 --
firewall.uet.edu.pk
# PageTop[192.168.0.213_127.0.0.1]: <H1>Traffic Analysis for 127.0.0.1
-- firewall.uet.edu.pk</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>firewall.uet.edu.pk in
PGRLAB</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</TD></TR>
#    <TR><TD>Description:</TD><TD>lo  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>softwareLoopback (24)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>127.0.0.1
(localhost.localdomain)</TD></TR>
#  </TABLE>


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.213' | Eth:
'00-c0-26-60-f7-44' ###

Target[192.168.0.213_192.168.0.213]:
/192.168.0.213:public at 192.168.0.213:
SetEnv[192.168.0.213_192.168.0.213]: MRTG_INT_IP="192.168.0.213"
MRTG_INT_DESCR="eth0"
MaxBytes[192.168.0.213_192.168.0.213]: 1250000
Title[192.168.0.213_192.168.0.213]: Traffic Analysis for 192.168.0.213
-- firewall.uet.edu.pk
PageTop[192.168.0.213_192.168.0.213]: <H1>Traffic Analysis for
192.168.0.213 -- firewall.uet.edu.pk</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>firewall.uet.edu.pk in PGRLAB</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</TD></TR>
   <TR><TD>Description:</TD><TD>eth0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.0.213 ()</TD></TR>
 </TABLE>


### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '172.16.0.1' | Eth:
'00-c0-26-60-f2-32' ###

Target[192.168.0.213_172.16.0.1]: /172.16.0.1:public at 192.168.0.213:
SetEnv[192.168.0.213_172.16.0.1]: MRTG_INT_IP="172.16.0.1"
MRTG_INT_DESCR="eth1"
MaxBytes[192.168.0.213_172.16.0.1]: 1250000
Title[192.168.0.213_172.16.0.1]: Traffic Analysis for 172.16.0.1 --
firewall.uet.edu.pk
PageTop[192.168.0.213_172.16.0.1]: <H1>Traffic Analysis for 172.16.0.1
-- firewall.uet.edu.pk</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>firewall.uet.edu.pk in PGRLAB</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>"Saqib bin Sohail"</TD></TR>
   <TR><TD>Description:</TD><TD>eth1  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>172.16.0.1 ()</TD></TR>
 </TABLE>




###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.
# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  public 192.168.0.213 
rwcommunity  public 192.168.0.0 / 24
rwcommunity  public 127.0.0.1
  
   
###########################################################################
# SECTION: Monitor Various Aspects of the Running Host
#
#   The following check up on various aspects of a host.
# load: Check for unreasonable load average values.
#   Watch the load average levels on the machine.
#   
#    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]
#   
#    1MAX:   If the 1 minute load average is above this limit at query
#            time, the errorFlag will be set.
#    5MAX:   Similar, but for 5 min average.
#    15MAX:  Similar, but for 15 min average.
#   
#   The results are reported in the laTable section of the
UCD-SNMP-MIB tree

load  12 12 12
  
  
  
 
  
  
  
  
   
###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.
# syslocation: The [typically physical] location of the system.
#   arguments:  location_string
syslocation  PGRLAB
  
# syscontact: The contact information for the administrator
#   arguments:  contact_string

syscontact  "Saqib bin Sohail"

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 79







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