[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[MRTG]duplica el valor IN de la interface



Hola a todos,

Después de mirarmelo remirarmelo y volver a remirarmelo, no tengo otra
alternativa que recurrir a vosotros para ver si me podeis echar un
guante...

Resulta que estoy monitorizando mediante MRTG el router un 3com 11g,
el router tiene soporte snmp  y lo he activado.

el problema es que me duplica la velocidad de bajada de la adsl. osea
si bajo a 200KB pues en la gráfica me salen 400KB. en cambio en el
táfico Out me muestra datos correctos...

La interface que monitorizo del router es la 4, ATM1 pone en el fichero .cfg

os dejo un poco del fichero:

# Created by
# /usr/bin/cfgmaker --output=/etc/WAN.cfg --global 'workdir:
/var/www/mrtg' --global 'options[_]:growright,bits' marte@192.168.1.1


### 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
workdir: /var/www/mrtg
options[_]:growright,bits

######################################################################
# System: Broadband Residential Gateway
# Description: Broadband Residential Gateway
# Contact: support@mail
# Location: Taiwan
######################################################################

### Interface 1 >> Descr: 'LOCAL_LOOPBACK' | Name: '' | Ip:
'127.0.0.1' | Eth: '00-00-00-00-00-00' ###

La uno esta comentada ya que es loopback


### Interface 2 >> Descr: 'LAN' | Name: '' | Ip: '192.168.1.1' | Eth:
'00-14-7c-b0-6c-00' ###
Target[192.168.1.1_2]: 2:marte@192.168.1.1:
SetEnv[192.168.1.1_2]: MRTG_INT_IP="192.168.1.1" MRTG_INT_DESCR="LAN"
MaxBytes[192.168.1.1_2]: 12500000
Title[192.168.1.1_2]: Traffic Analysis for 2 -- Broadband Residential Gateway
PageTop[192.168.1.1_2]: <H1>Traffic Analysis for 2 -- Broadband
Residential Gateway</H1>
<TABLE>
 <TR><TD>System:</TD>     <TD>Broadband Residential Gateway in
Taiwan</TD></TR>
 <TR><TD>Maintainer:</TD> <TD>support@mail</TD></TR>
 <TR><TD>Description:</TD><TD>LAN  </TD></TR>
 <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
 <TR><TD>ifName:</TD>     <TD></TD></TR>
 <TR><TD>Max Speed:</TD>  <TD>100.0 Mbits/s</TD></TR>
 <TR><TD>Ip:</TD>         <TD>192.168.1.1 (.)</TD></TR>
</TABLE>

esta la dejo sin comentar para monitorizar la red

### Interface 3 >> Descr: 'WLAN' | Name: '' | Ip: '' | Eth:
'00-14-7c-b0-6c-02' ###
Target[192.168.1.1_3]: 3:marte@192.168.1.1:
SetEnv[192.168.1.1_3]: MRTG_INT_IP="" MRTG_INT_DESCR="WLAN"
MaxBytes[192.168.1.1_3]: 1250000
Title[192.168.1.1_3]: Traffic Analysis for 3 -- Broadband Residential Gateway
PageTop[192.168.1.1_3]: <H1>Traffic Analysis for 3 -- Broadband
Residential Gateway</H1>
<TABLE>
 <TR><TD>System:</TD>     <TD>Broadband Residential Gateway in
Taiwan</TD></TR>
 <TR><TD>Maintainer:</TD> <TD>support@mail</TD></TR>
 <TR><TD>Description:</TD><TD>WLAN  </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>
</TABLE>

la wlan la dejo sin comentar, no me he fijado si tiene el mismo problema.


### Interface 4 >> Descr: 'ATM1' | Name: '' | Ip: '' | Eth:
'00-14-7c-b0-6c-01' ###
Target[192.168.1.1_4]: 4:marte@192.168.1.1:
SetEnv[192.168.1.1_4]: MRTG_INT_IP="" MRTG_INT_DESCR="ATM1"
MaxBytes[192.168.1.1_4]: 1250000
Title[192.168.1.1_4]: Traffic Analysis for 4 -- Broadband Residential Gateway
PageTop[192.168.1.1_4]: <H1>Traffic Analysis for 4 -- Broadband
Residential Gateway</H1>
<TABLE>
 <TR><TD>System:</TD>     <TD>Broadband Residential Gateway in
Taiwan</TD></TR>
 <TR><TD>Maintainer:</TD> <TD>support@mail</TD></TR>
 <TR><TD>Description:</TD><TD>ATM1  </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>
</TABLE>



### Interface 12 >> Descr: 'PPPoE1' | Name: '' | Ip: '' | Eth: '' ###

comentada ya que no tiene trafico alguno ?¿

Esto fue lo que me soltó cfgmaker cuando cree el fichero:

--base: Get Device Info on marte@192.168.1.1:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because marte@192.168.1.1: does not
seem to support it
--snpo: confcache marte@192.168.1.1: Descr LOCAL_LOOPBACK --> 1
--snpo: confcache marte@192.168.1.1: Descr LAN --> 2
--snpo: confcache marte@192.168.1.1: Descr WLAN --> 3
--snpo: confcache marte@192.168.1.1: Descr ATM1 --> 4
--snpo: confcache marte@192.168.1.1: Descr PPPoE1 --> 12
--snpo: confcache marte@192.168.1.1: Type 24 --> 1
--snpo: confcache marte@192.168.1.1: Type 6 --> 2
--snpo: confcache marte@192.168.1.1: Type 6 --> 3 (duplicate)
--snpo: confcache marte@192.168.1.1: Type 6 --> 4 (duplicate)
--snpo: confcache marte@192.168.1.1: Type 0 --> 12
--snpo: confcache marte@192.168.1.1: Ip 127.0.0.1 --> 1
--snpo: confcache marte@192.168.1.1: Ip 192.168.1.1 --> 2
--snpo: confcache marte@192.168.1.1: Eth 00-00-00-00-00-00 --> 1
--snpo: confcache marte@192.168.1.1: Eth 00-14-7c-b0-6c-00 --> 2
--snpo: confcache marte@192.168.1.1: Eth 00-14-7c-b0-6c-02 --> 3
--snpo: confcache marte@192.168.1.1: Eth 00-14-7c-b0-6c-01 --> 4
--snpo: confcache marte@192.168.1.1: Eth  --> 12
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Writing /etc/WAN.cfg


Alguien sabe que esta pasando? muchas gracias a todos por leeros este toston.

Saludos- David.

Reply to: