[mrtg] mrtg on d-link DI-524

marcs sirion at ngi.it
Thu Sep 4 15:29:21 CEST 2008


I'm tring to monitor my router a d-link DI-524 with mrtg, i've used cfgmaker
with this options:

cfgmaker --global "WorkDir: /home/orizon/public_html/mrtg/" --global
"Options[_]: bits,growright" --output /home/orizon/public_html/mrtg.cfg
cbrouter at 192.168.0.1

but this is the output of the configuration file: 

# Created by 
# /usr/bin/cfgmaker --global "WorkDir: /home/orizon/public_html/mrtg/"
--global "Options[_]: bits,growright" --output
/home/orizon/public_html/mrtg.cfg cbrouter at 192.168.0.1


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

EnableIPv6: no
WorkDir: /home/orizon/public_html/mrtg/
Options[_]: bits,growright

######################################################################
# System: 
# Description: Internet Gateway Device
# Contact: 
# Location: 
######################################################################


### Interface 1 >> Descr: 'Ethernet-WAN' | Name: '' | Ip: '' | Eth:
'00-1b-11-85-12-d7' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense
# 
# Target[192.168.0.1_1]: 1:cbrouter at 192.168.0.1:
# SetEnv[192.168.0.1_1]: MRTG_INT_IP="" MRTG_INT_DESCR="Ethernet-WAN"
# MaxBytes[192.168.0.1_1]: 0
# Title[192.168.0.1_1]: Traffic Analysis for 1 -- 
# PageTop[192.168.0.1_1]: <h1>Traffic Analysis for 1 -- </h1>
#               <div id="sysdetails">
#                       <table>
#                               <tr>
#                                       <td>System:</td>
#                                       <td> in </td>
#                               </tr>
#                               <tr>
#                                       <td>Maintainer:</td>
#                                       <td></td>
#                               </tr>
#                               <tr>
#                                       <td>Description:</td>
#                                       <td>Ethernet-WAN  </td>
#                               </tr>
#                               </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 bits/s</td>
#                               </tr>
#                       </table>
#               </div>

the cfgmaker script comments my configuration because: 

### The following interface is commented out because:
### * has a speed of 0 which makes no sense

But surely my router is not at zero speed, i'm in a lan with 4 computers. I
guess i'm missing something...

This is the response of my router (model D-link DI-524) when i call an
snmpwalk:

SNMPv2-MIB::sysDescr.0 = STRING: Internet Gateway Device                       
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.171                   
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (208113150) 24 days,
2:05:31.50
SNMPv2-MIB::sysContact.0 = STRING:                                              
SNMPv2-MIB::sysName.0 = STRING:                                                 
SNMPv2-MIB::sysLocation.0 = STRING:                                             
SNMPv2-MIB::sysServices.0 = INTEGER: 2                                          
IF-MIB::ifNumber.0 = INTEGER: 1                                                 
IF-MIB::ifIndex.1 = INTEGER: 1                                                  
IF-MIB::ifDescr.1 = STRING: Ethernet-WAN
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING: 0:1b:11:85:12:d7
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (208113150) 24 days, 2:05:31.50
IF-MIB::ifInOctets.1 = Counter32: 1251041600
IF-MIB::ifInUcastPkts.1 = Counter32: 13917398
IF-MIB::ifInNUcastPkts.1 = Counter32: 65402
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1521746056
IF-MIB::ifOutUcastPkts.1 = Counter32: 13281773
IF-MIB::ifOutNUcastPkts.1 = Counter32: 580
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 16
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
End of MIB

i'm quite a noob with snmp, so what i'm doing wrong ?
-- 
View this message in context: http://n2.nabble.com/mrtg-on-d-link-DI-524-tp838804p838804.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.



More information about the mrtg mailing list