You need to create a custom stanza for this new Target.

 

You can do this manually, or (if you will need to do this same thing
frequently) you can create a custom host template for cfgmaker and use it
with the �Chost-template option.

 

The new stanza should define the Target in a similar way to this:

 

Target[users]:
CnTWaLK1.3.6.1.4.1.14823.2.2.1.5.2.1.5.1.7&pseudoZero:community@device

 

Note that 

(a)    you MUST have two items in a Target, separated by ‘&’

(b)   we’re using pseudoZero for the second as we’re only interested in
one and don’t want to count again

(c)    we’re using the CnTWaLK prefix to walk the tree and count the items
(see the MRTG documentation)

(d)   You’ll likely need to have Options[users]:gauge,noo  to make this
work

(e)   Set your appropriate community string, device identifier, and a suffix
of :::::2 if you use SNMPv2

(f)     If you want to make a custom host template, you’ll need to know
Perl.  See http://www.steveshipway.org/cfgmaker for a few examples.

 

Steve

 

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 923 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:[email protected]> [email protected]

P Please consider the environment before printing this e-mail : 打印本邮件,
将减少一棵树存活的机会

 

From: [email protected]
[mailto:[email protected]] On Behalf Of
Martin MacLeod-Brown
Sent: Friday, 28 June 2013 12:12 a.m.
To: [email protected]
Subject: [mrtg] using smnp?

 

Im well versed in using MRTG to graph our network interfaces, but Im less
sure on the best way to use SNMP based queries?

I have an SNMP string (.1.3.6.1.4.1.14823.2.2.1.5.2.1.5.1.7) which will give
me the number of users per radio per Access Point  which Id like to turn
into a series of Graphs> If I walk the MiB, that query will return 590
results.

Normally Id point cfgmaker at the router or switch, but Im unsure how to get
a config file for this query that I can then edit?

 

If someone can give me a pointer Id be very grateful

 

Martin

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to