From: Jeff Allen <jra@corp.webtv.net>
jmpark wrote:
> How can I do if I make the rrd name independence with instance number?
> I want to name the instance the symbolic name.
What you need to do is use Instance mapping on the symbolic
name of the port, and use scalar targets that represent each of the
ports you are interested in. You could use a vector instance to grab
stats on the other, less interesting ports.
It would look something like this:
target --default--
snmp-host = switch-name.company.com
inst = "map(interface-name)"
target important-server-1
interface-name = "A"
target important-server-2
interface-name = "B"
# pick up all other ports here via a vector target
target switch-name
# right now, server-1 and server-2 are plugged into
# the ports with instances 1 and 2.
inst = (3 .. 24)
(The above example assumes you are using the root Defaults file from
the config-tree, which includes the definition of the interface-name
map.)
This, of course, assumes that the ifDescr's for the ports take the
form of "A", or "B". It's up to you to use other tools (like snmpwalk)
to find out what the symbolic names (ifDescr's) are for the ports you
are interested in.
PS: I just realized that rrd-datafile needs to be frobbed to use
scalar and vector targets interchangeably. That's left as an exercise
to the reader.
-- Jeff R. Allen | jra@corp.webtv.net (work) WebTV Networks, Inc. | jeff.allen@acm.org (personal) Service Operations Toolsmith | http://www.munitions.com/~jra------------------------------------------------------------------------ Start a new hobby. Meet a new friend. http://www.onelist.com ONElist: The leading provider of free e-mail list services!
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:47 PST