[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: 1.3.6.1.4.1.161.19.3.1.7.1.0.

I can snmpwalk from the machine that mrtg is running on and get the expected
response.  Here it is:
snmpwalk -v 2c -c Canopy 10.254.1.101 1.3.6.1.4.1.161.19.3.1.7.1.0
SNMPv2-SMI::enterprises.161.19.3.1.7.1.0 = 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
statistics
#

#
# 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-
SMI.txt

#
# Registered SM Monitoring
#

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


The error I get is:
2007-02-09 12:20:38: ERROR: Target[tower001.ap101][_IN_] '
1.3.6.1.4.1.161.19.3.1.7.1. $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_] '
1.3.6.1.4.1.161.19.3.1.7.1. $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?

Thanks,

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