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

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


Hi,

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
(10.4.3.10) (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 (10.4.1.20) (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: 1.3.6.1.2.1.2.2.1.16.6)
SNMPv1_Session (remote host: "10.4.3.10" [10.4.3.10].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.10.4.1.20 ifInOctets.6
ipAdEntIfIndex.10.4.1.20 ifOutOctets.6 sysUptime sysName on
public at 10.4.3.10:
 at /usr/local/bin/mrtg line 1601
WARNING: skipping because at least the query for ipAdEntIfIndex.10.4.1.20 on
10.4.3.10 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 10.4.3.10


### 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: '10.4.3.10' | Eth: '' ###

Target[ethernet]: /10.4.3.10:public at 10.4.3.10:
SetEnv[ethernet]: MRTG_INT_IP="10.4.3.10" MRTG_INT_DESCR="Ethernet"
MaxBytes[ethernet]: 12500000
Title[ethernet]: Traffic Analysis for 3com 100BaseT NIC
PageTop[ethernet]: <H1>Traffic Analysis for ethernet connection</H1>
 <TABLE>
   <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>10.4.3.10
(server.moriarty.midwestwan.org)</TD></TR>
 </TABLE>
PageFoot[ethernet]: <div align="center"><img src="apache_pb.gif"
alt="Powered by Apache" /><img src="freebsd_pb.gif" alt="Powered by FreeBSD"
/></div>

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

Target[wireless]: /10.4.1.20:public at 10.4.3.10:
SetEnv[wireless]: MRTG_INT_IP="10.4.1.20" MRTG_INT_DESCR="wi0"
MaxBytes[wireless]: 1250000
Title[wireless]: Traffic Analysis for 10.4.1.20 --
server.moriarty.midwestwan.org
PageTop[wireless]: <H1>Traffic Analysis for wireless connection</H1>
 <TABLE>
   <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>10.4.1.20
(server.moriarty.midwestwan.org)</TD></TR>
 </TABLE>
PageFoot[wireless]: <div align="center"><img src="apache_pb.gif"
alt="Powered by Apache" /><img src="freebsd_pb.gif" alt="Powered by FreeBSD"
/></div>


<End of Config file>

Any help or suggestions would be greatly appreciated :-)


Moriarty


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