[mrtg] Problem with snmpd/mrtg interface (possibly)

Moriarty mrmoriarty at eircom.net
Wed Nov 13 16:20:48 MET 2002


I recently compiled a new kernel for FreeBSD 4.7 stable and ever since i
havent been able to get mrtg working. It generates the stats for device xl0
( (3com 905c nic) perfectly, which is first in the config, but the
mrtg process breaks with the below error message when trying to make the
stats for the wireless device wi0 ( (Avaya 802.11b nic). I had
this setup running fine until an unrelated program needed changes to the
kernel. Anyhow, heres the error generated when i run mrtg..

<Start of error>

[/] # /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 4 (OID:
SNMPv1_Session (remote host: "" [].161)
                  community: "public"
                 request ID: -1443298192
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/local/lib/perl5/site_perl/5.005/SNMP_util.pm line 458
SNMPGET Problem for ipAdEntIfIndex. ifInOctets.6
ipAdEntIfIndex. ifOutOctets.6 sysUptime sysName on
public at
 at /usr/local/bin/mrtg line 1601
WARNING: skipping because at least the query for ipAdEntIfIndex. on did not succeed
ERROR: Target[wireless][_IN_] ' $$target[1]{$mode} ' did not eval into
defined data
ERROR: Target[wireless][_OUT_] ' $$target[1]{$mode} ' did not eval into
defined data
WARNING: Skipping Update of wireless, inlast is not defined
WARNING: Skipping Update of wireless, outlast is not defined
[/] #

<End of error>

<Start of config file>

# Created by
# /usr/local/bin/cfgmaker --ifref=ip --output=mrtg.cfg

### Global Config Options

#  for UNIX
WorkDir: /usr/local/www/data/mrtg

### Global Defaults

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

### Interface 1 >> Descr: '3com 100BaseT NIC' | Name: '3com 100BaseT NIC' |
Ip: '' | Eth: '' ###

Target[ethernet]: / at
SetEnv[ethernet]: MRTG_INT_IP="" MRTG_INT_DESCR="Ethernet"
MaxBytes[ethernet]: 12500000
Title[ethernet]: Traffic Analysis for 3com 100BaseT NIC
PageTop[ethernet]: <H1>Traffic Analysis for ethernet connection</H1>
   <TR><TD>Description:</TD><TD>3com 905c 100BaseT Full-Duplex</TD></TR>
   <TR><TD>Type:</TD>     <TD>Ethernet</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>100Mbit</TD></TR>
   <TR><TD>IP:</TD>         <TD>
PageFoot[ethernet]: <div align="center"><img src="apache_pb.gif"
alt="Powered by Apache" /><img src="freebsd_pb.gif" alt="Powered by FreeBSD"

### Interface 6 >> Descr: 'Avaya 802.11b NIC' | Name: 'Avaya 802.11b NIC' |
Ip: '' | Eth: '' ###

Target[wireless]: / at
SetEnv[wireless]: MRTG_INT_IP="" MRTG_INT_DESCR="wi0"
MaxBytes[wireless]: 1250000
Title[wireless]: Traffic Analysis for --
PageTop[wireless]: <H1>Traffic Analysis for wireless connection</H1>
   <TR><TD>Description:</TD><TD>Avaya 802.11b NIC</TD></TR>
   <TR><TD>Type:</TD>     <TD>802.11b</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>11Mbit</TD></TR>
   <TR><TD>IP:</TD>         <TD>
PageFoot[wireless]: <div align="center"><img src="apache_pb.gif"
alt="Powered by Apache" /><img src="freebsd_pb.gif" alt="Powered by FreeBSD"

<End of Config file>

Any help or suggestions would be greatly appreciated :-)


Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list