Try this as it gives a matched pair Target[tower001.ap101]: 1.3.6.1.4.1.161.19.3.1.7.1.0& 1.3.6.1.4.1.161.19.3.1.7.1.0:[EMAIL PROTECTED]:::::2
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wes Hegge Sent: Friday, February 09, 2007 12:24 PM To: [email protected] Subject: [mrtg] Help with configuring target to used an oid 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:[EMAIL PROTECTED]:::::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. CONFIDENTIAL NOTICE: This e-mail message and any attachment(s) (collectively, this 'Email') are intended only for the confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient named above or an agent responsible for delivering it to the intended recipient named above, you have received this Email in error. Please notify the sender immediately and permanently delete this Email and any copies thereof.
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
