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)
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>
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
Kann mir einer sagen was ich falsch mache?
Vielen Dank im vorraus[/code]