[mrtg] Help with configuring target to used an oid

Wes Hegge whegge at gmail.com
Fri Feb 9 19:24:12 CET 2007

Hello everyone,

Hopefully I have a simple problem.  I am trying to pull the number of
clients from a Motorola Cyclone Access Point.  I have figured out the OID
number to use, it is:

I can snmpwalk from the machine that mrtg is running on and get the expected
response.  Here it is:
snmpwalk -v 2c -c Canopy
SNMPv2-SMI::enterprises. = INTEGER: 28

Here is my cfg file for this:
# File: /etc/mrtg/registered_SM_count.cfg
# Configuration file for gathering number of registered SM's on AP's

# Define global options

WorkDir: /var/www/mrtg/
# Refresh brower window very 5 minutes
Refresh: 300
LoadMIBs: /usr/share/snmp/mibs/SNMPv2-MIB.txt, /usr/share/snmp/mibs/SNMPv2-

# Registered SM Monitoring

Target[tower001.ap101]: at
Title[tower001.ap101]: SM Count Tower 001 AP 101
MaxBytes[tower001.ap101]: 200
PageTop[tower001.ap101]: <H1>SM Count for Tower 001 Access Point</H1>

The error I get is:
2007-02-09 12:20:38: ERROR: Target[tower001.ap101][_IN_] ' $target->[0]{$mode} ' (warn): Use of
uninitialized value in concatenation (.) or string at (eval 15) line 1.
2007-02-09 12:20:38: ERROR: Target[tower001.ap101][_OUT_] ' $target->[0]{$mode} ' (warn): Use of
uninitialized value in concatenation (.) or string at (eval 16) line 1.

I notice that the OID number is one digit short, it is missing the last 0.

I am thinking that I may need to use WaLK prepended to the OID.  Just not
sure how to do that.  I cannot find a decent example of its use.

Any ideas?


Wes Hegge
Network Manager
T6Broadband, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070209/8ed1dcc7/attachment.htm 

More information about the mrtg mailing list