mrtg på D-link 804 router og winMe
det forekommer mig at den cfgmaker som følger med mrtg, ikke virker med min DI-804 router. ihvertfald får jeg en masse fejl når jeg kører den.min cfg ser ud som følgende:
WorkDir: d:/webserver/apache/htdocs/stats
# Created by
# cfgmaker public@192.168.0.1 --global 'WorkDir: d:/webserver/apache/htdocs/stats' --output mrtg.cfg
### 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
######################################################################
# System: ê
# Description: DrayTek Corporation
# Contact: Tom Chen
# Location: HsinChu
######################################################################
### Interface 1 >> Descr: 'Ethernet0' | Name: '' | Ip: '' | Eth: '30-30-2e-30-35-2e-35-44-2e-44-35-2e-38-37-2e-43-38-28-68-65-78-29' ###
Target[192.168.0.1_1]: 1:public@192.168.0.1:
SetEnv[192.168.0.1_1]: MRTG_INT_IP="" MRTG_INT_DESCR="Ethernet0"
MaxBytes[192.168.0.1_1]: 12500000
Title[192.168.0.1_1]: Traffic Analysis for 1 -- ê
PageTop[192.168.0.1_1]: <H1>Traffic Analysis for 1 -- ê</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ê in HsinChu</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Tom Chen</TD></TR>
<TR><TD>Description:</TD><TD>Ethernet0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
</TABLE>
### Interface 2 >> Descr: '' | Name: '' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense
#
# Target[192.168.0.1_2]: 2:public@192.168.0.1:
# SetEnv[192.168.0.1_2]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# MaxBytes[192.168.0.1_2]: 0
# Title[192.168.0.1_2]: Traffic Analysis for 2 -- ê
# PageTop[192.168.0.1_2]: <H1>Traffic Analysis for 2 -- ê</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>ê in HsinChu</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>Tom Chen</TD></TR>
# <TR><TD>Description:</TD><TD> </TD></TR>
# <TR><TD>ifType:</TD> <TD> (0)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
# </TABLE>
### Interface 3 >> Descr: '' | Name: '' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense
#
# Target[192.168.0.1_3]: 3:public@192.168.0.1:
# SetEnv[192.168.0.1_3]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# MaxBytes[192.168.0.1_3]: 0
# Title[192.168.0.1_3]: Traffic Analysis for 3 -- ê
# PageTop[192.168.0.1_3]: <H1>Traffic Analysis for 3 -- ê</H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>ê in HsinChu</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>Tom Chen</TD></TR>
# <TR><TD>Description:</TD><TD> </TD></TR>
# <TR><TD>ifType:</TD> <TD> (0)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
# </TABLE>
### Interface 4 >> Descr: 'Ethernet1' | Name: '' | Ip: '' | Eth: '30-30-2e-30-35-2e-35-44-2e-44-35-2e-38-37-2e-43-39-28-68-65-78-29' ###
Target[192.168.0.1_4]: 4:public@192.168.0.1:
SetEnv[192.168.0.1_4]: MRTG_INT_IP="" MRTG_INT_DESCR="Ethernet1"
MaxBytes[192.168.0.1_4]: 1250000
Title[192.168.0.1_4]: Traffic Analysis for 4 -- ê
PageTop[192.168.0.1_4]: <H1>Traffic Analysis for 4 -- ê</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ê in HsinChu</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Tom Chen</TD></TR>
<TR><TD>Description:</TD><TD>Ethernet1 </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>
den er altså den som cfgmaker har lavet. -men ikke virker.
den laver godt nok en HTML som den skal, se evt. trabjergnet.dk/stats -men der er bare ingen graf på.
jeg tror problemet ligger i snmp understøttelsen ?
har sat routeren op til at aktivere SNMP "public"
er der nogen som har et bud?
se evt. http://www.eksperten.dk/spm/147389 -det ser ud til der er en som har det til at virke.
mvh dennis
trabjergnet.dk