mrtg will eth0 nicht

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Navok
Beiträge: 33
Registriert: 18.12.2002 23:38:17
Kontaktdaten:

mrtg will eth0 nicht

Beitrag von Navok » 03.06.2004 18:39:58

Hallo miteinander.

Ich habe mir mrtg installiert. Soweit hat es auch gestarted und spuckt mir auch ne Seite aus.

ifconfig spuckt folgendes aus.

Code: Alles auswählen

eth0      Link encap:Ethernet  HWaddr 00:A0:24:CB:87:52
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11740263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13972025 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2832263820 (2.6 GiB)  TX bytes:2686080388 (2.5 GiB)
          Interrupt:11 Base address:0x7c40

eth1      Link encap:Ethernet  HWaddr 00:06:29:AE:BA:CF
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:15

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:20425 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20425 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2073940 (1.9 MiB)  TX bytes:2073940 (1.9 MiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:192.168.205.1  Bcast:192.168.205.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4008 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08
          inet addr:172.16.51.1  Bcast:172.16.51.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2005 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
vmnet1 und 8 kommen von VmWare.

Meine /etc/mrtg.conf sieht folgender maßen aus

Code: Alles auswählen

### Global Config Options

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

#  for Debian
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

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

######################################################################
# System: debian
# Description: Linux debian 2.4.25-1-686 #1 Tue Feb 24 10:55:59 EST 2004 i686
# Contact: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# Location: Unknown (configure /etc/snmp/snmpd.local.conf)
######################################################################


### 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[debian_1]: 1:public@debian:
# SetEnv[debian_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[debian_1]: 1250000
# Title[debian_1]: Traffic Analysis for 1 -- debian
# PageTop[debian_1]: <H1>Traffic Analysis for 1 -- debian</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</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>1250.0 kBytes/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>127.0.0.1 (debian)</TD></TR>
#  </TABLE>


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.1' | Eth: 'XX-XX-XX-XX-XX-XX' ###
### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
#
 Target[debian_2]: 2:public@debian:
 SetEnv[debian_2]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth0"
 MaxBytes[debian_2]: 1250000
 Title[debian_2]: Traffic Analysis for 2 -- debian
 PageTop[debian_2]: <H1>Traffic Analysis for 2 -- debian</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</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>0.0 Bytes/s</TD></TR>
    <TR><TD>Ip:</TD>         <TD>192.168.0.1 ()</TD></TR>
  </TABLE>


### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '192.168.0.20' | Eth: 'XX-XX-XX-XX-XX-XX' ###
### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
#
# Target[debian_3]: 3:public@debian:
# SetEnv[debian_3]: MRTG_INT_IP="192.168.0.20" MRTG_INT_DESCR="eth1"
# MaxBytes[debian_3]: 0
# Title[debian_3]: Traffic Analysis for 3 -- debian
# PageTop[debian_3]: <H1>Traffic Analysis for 3 -- debian</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</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>0.0 Bytes/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>192.168.0.20 ()</TD></TR>
#  </TABLE>


### Interface 4 >> Descr: 'vmnet1' | Name: '' | Ip: '' | Eth: 'XX-XX-XX-XX-XX-XX' ###

Target[debian_4]: 4:public@debian:
SetEnv[debian_4]: MRTG_INT_IP="" MRTG_INT_DESCR="vmnet1"
MaxBytes[debian_4]: 1250000
Title[debian_4]: Traffic Analysis for 4 -- debian
PageTop[debian_4]: <H1>Traffic Analysis for 4 -- debian</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</TD></TR>
   <TR><TD>Description:</TD><TD>vmnet1  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
 </TABLE>


### Interface 5 >> Descr: 'vmnet8' | Name: '' | Ip: '192.168.205.1' | Eth: 'XX-XX-XX-XX-XX-XX' ###

Target[debian_5]: 5:public@debian:
SetEnv[debian_5]: MRTG_INT_IP="192.168.205.1" MRTG_INT_DESCR="vmnet8"
MaxBytes[debian_5]: 1250000
Title[debian_5]: Traffic Analysis for 5 -- debian
PageTop[debian_5]: <H1>Traffic Analysis for 5 -- debian</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</TD></TR>
   <TR><TD>Description:</TD><TD>vmnet8  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.205.1 ()</TD></TR>
 </TABLE>



### Interface 14 >> Descr: '' | Name: '' | Ip: '80.139.52.87' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of  which makes no sense
### * got 'Received SNMP response with error code
###       error status: noSuchName
###       index 1 (OID: 1.3.6.1.2.1.2.2.1.10.14)
###     SNMPv1_Session (remote host: "debian" [127.0.0.1].161)
###                       community: "public"
###                      request ID: -1005537928
###                     PDU bufsize: 8000 bytes
###                         timeout: 2s
###                         retries: 5
###                         backoff: 1)' from interface when trying to query
#
# Target[debian_14]: 14:public@debian:
# SetEnv[debian_14]: MRTG_INT_IP="80.139.52.87" MRTG_INT_DESCR=""
# MaxBytes[debian_14]: 0
# Title[debian_14]: Traffic Analysis for 14 -- debian
# PageTop[debian_14]: <H1>Traffic Analysis for 14 -- debian</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD> ()</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>0.0 Bytes/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>80.139.52.87 (p508B3457.dip.t-dialin.net)</TD></TR>
#  </TABLE>
Was mich jetz iritiert ist folgende Zeile

Code: Alles auswählen

### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.1' | Eth: 'XX-XX-XX-XX-XX-XX' ###
### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
Dies steht bei eth0 und eth1 drüber. Aber wie man bei ifconfig zweifellos sehen kann laufen sehrwohl daten drüber.Bei mrtg angezeigt bekomme ich nur vmnet1 und 8 eth0 nicht.
Kann mir einer sagen was ich falsch mache?
Vielen Dank im vorraus[/code]
visit http://www.convention-xtreme.de
Lanpartys im Kreis BW

MFG N@vok :twisted:

Benutzeravatar
oleg
Beiträge: 118
Registriert: 29.01.2003 21:57:39

Beitrag von oleg » 04.06.2004 17:06:39

Hi!

Nimm dir mal den Abschnitt raus und mach ne eigene Konfigurationsdatei draus.
nenn sie meinetwegen ethernet0.cfg:

Code: Alles auswählen

### Global Config Options

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

#  for Debian
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

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

### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.1' | Eth: 'XX-XX-XX-XX-XX-XX' ###
### The following interface is commented out because:
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
#
 Target[debian_2]: 2:public@debian:
 SetEnv[debian_2]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth0"
 MaxBytes[debian_2]: 1250000
 Title[debian_2]: Traffic Analysis for 2 -- debian
 PageTop[debian_2]: <H1>Traffic Analysis for 2 -- debian</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>debian in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)</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>100Mbit/s</TD></TR>
    <TR><TD>Ip:</TD>         <TD>192.168.0.1 ()</TD></TR>
  </TABLE> 
Könnte vielleicht auch sein dass mrtg Probleme mit Deinen Virtuellen NIC's hat.
Das solltest Du in der MRTG-Mailinglist in Erfahrung bringen können.
Ausserdem musst Du die Community-Geschichte in /etc/snmpd/snmpd.conf ändern:
Die Zeilen in denen "com2sec" vorkommt:
1.Zeile auskommentieren
2. Zeile Kommentarzeichen entfernen
3.Zeile auskommentieren
Sonst kann es gar nicht NICHT laufen!
Viel Spass noch...

Navok
Beiträge: 33
Registriert: 18.12.2002 23:38:17
Kontaktdaten:

Beitrag von Navok » 05.06.2004 22:59:51

Also die snmp.conf hatte ich shcon umgestellt

Ich weiß jetzt auch nicht warum, aber jetzt wo ich die andere config (also wo nur eth0 drinsteht) nehm gehts.

Danke für die Hilfe.
visit http://www.convention-xtreme.de
Lanpartys im Kreis BW

MFG N@vok :twisted:

Antworten