[mrtg] Re: (no subject)

Andre Kuellenberg meiner at wtal.de
Tue Jul 6 23:06:10 MEST 1999


Am Tue, 06 Jul 1999 schrieben Sie:
> Andre,
> 
> Which kernel are you running, and what snmpd are you running?
> I am unfamiliar with SuSE, but have seen other problems before.
> Also, if you could make available the config file you use, that might
> help.
> 
> Thanks,
> 
> -Tim
> 
> On Tue, 6 Jul 1999, Andre Kuellenberg wrote:
> 
> > Hi everybody!
> > I've got a problem with MRTG. I've installed SuSE Linux 6.0 on my Router and
> > want to display the in- and outgoing traffic of the eth and ppp device. I'm
> > using a mrtg configuration file created by cfgmaker. Now only the incomming
> > traffic is shown. What do i have to do now that the outgoing traffic is
> > displayed, too.


Ok,
My current kernel version is 2.2.7 and this is what 'snmpd -V' says:
'cmu-snmp for Linux v3.5; 7. Feb 1998
http://www.gaertner.de/snmp/ -- The Linux CMU SNMP Project'

Here's the /etc/snmpd.conf:
#
# snmpd.conf - created Thu Jul 24 22:12:50 MET DST 1997
#

#
# view configuration
#
#	viewName	OID			included/excluded
#

# internet
view	all		.1.3.6.1		included

# internet
view	mini		.1.3.6.1		included

# for v1 public exclude exclude mib-2.ident.identInfo
# and mib-2.host.hrSWRun in the mini view:
view	xmini		.1.3.6.1		included
view	xmini		.1.3.6.1.2.1.24.1	excluded
view	xmini		.1.3.6.1.2.1.25.4	excluded

# system, snmp, usecAgent, usecStats
view	semi		.1.3.6.1.2.1.1		included
view	semi		.1.3.6.1.2.1.11		included
view	semi		.1.3.6.1.6.3.6.1.1	included
view	semi		.1.3.6.1.6.3.6.1.2	included

# snmp, usecAgent, usecStats
view	semi		.1.3.6.1.2.1.11		included
view	semi		.1.3.6.1.6.3.6.1.1	included
view	semi		.1.3.6.1.6.3.6.1.2	included


#
#
# user configuration
#
#	noneRV	noneWV	authRV	authWV	userName[/authKey]
#
#user	xmini	-	all	all	public/0x05a1483bb7a0b314cc5cf9d27aee2a89
user	xmini	-	xmini	-	public/0x05a1483bb7a0b314cc5cf9d27aee2a89



#
#
# community configuration
#
#	  commName	readV	writeV
#
community public	xmini	-
## uncomment for private entry:
# community private	mini	mini

##
## now follows the specific section of the linux-port.
##

##
## port to use (default is 161):
##
# port:		161

##
## the entry of system.Contact and system.Location:
##
sysContact:		Not Configured
sysLocation:		Not Configured
## the system name is per default determined from the hostname:
# sysName:		chappell 

##
## trap sink address and community string. (passed to snmptrap(1) 
## utility). authentraps contains the value of snmpEnableAuthenTraps;
## (default is `disabled').
##
trap sink:		localhost
trap community:		public
snmpEnableAuthenTraps:	disabled

##
## specify type and speed of interfaces:
## if the last char is an asterisk, any suffix will match.
## (feel free to add more)
##
interface:	lo*	24	20000000
interface:	dummy*	 1	10000000
interface:	eth*	 6	10000000
interface:	sl*	28	28800
interface:	ppp*	23	28800
interface:	isdn*	20	64000
interface:	ippp*	20	64000

## end of /etc/snmpd.conf

-------------------------------------------------
....and my very simple mrtg.cfg:


WorkDir: /home/webmaster/htdocs/mrtg

######################################################################
# Description: Linux version 2.2.7 (root at MeinerII) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)) #11 Mon Jun 21 12:44:05 MEST 1999
#     Contact: Not Configured
# System Name: diener
#    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[diener.1]: 1:public at diener
# MaxBytes[diener.1]: 2500000
# Title[diener.1]: diener (localhost): lo
# PageTop[diener.1]: <H1>Traffic Analysis for lo
#  </H1>
#  <TABLE>
#    <TR><TD>System:</TD><TD>diener 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>localhost (127.0.0.1)</TD></TR>
#    <TR><TD>Max Speed:</TD>
#        <TD>2500.0 kBytes/s (softwareLoopback)</TD></TR>
#   </TABLE>
# 
#---------------------------------------------------------------

Target[diener.3]: 3:public at diener
MaxBytes[diener.3]: 1250000
Title[diener.3]: diener (): eth0
PageTop[diener.3]: <H1>Traffic Analysis for eth0
 </H1>
 <TABLE>
   <TR><TD>System:</TD><TD>Ondre's Diener</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Andre Kuellenberg</TD></TR>
   <TR><TD>Interface:</TD><TD>eth0 (3)</TD></TR>
   <TR><TD>IP:</TD><TD>192.168.100.100 ()</TD></TR>
   <TR><TD>Max Speed:</TD>
       <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
  </TABLE>

#---------------------------------------------------------------

Target[diener.4]: 4:public at diener
MaxBytes[diener.4]: 3600
Title[diener.4]: diener: ppp0
PageTop[diener.4]: <H1>Traffic Analysis for ppp0
 </H1>
 <TABLE>
   <TR><TD>System:</TD><TD>Ondre's Diener</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Andre Kuellenberg</TD></TR>
   <TR><TD>Interface:</TD><TD>ppp0 (4)</TD></TR>
   <TR><TD>IP:</TD><TD>dynamic</TD></TR>
   <TR><TD>Max Speed:</TD>
       <TD>3600.0 Bytes/s (ppp)</TD></TR>
  </TABLE>

#---------------------------------------------------------------


Thank you very much for your help!

Andre

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