List Info

Thread: changes in snmp index




changes in snmp index
user name
2006-12-28 23:17:11
Using interface by description, name, ip, or mac addr makes
sense when a
device has changing snmp interface indexes.  My problem is
similar but does
not apply to interfaces.  I'm querying a storage array,
specifically the
traffic on a particular lun.  This target queries the lun
I'm interested
in...
Target[vol3.lun0]:
lunReadBytes.1&lunWriteBytes.1:publicdevicename

The issue arises when I add a new lun.  The index of my
original lun is no
longer .1.  It's now .2 and my config file is polling a
different lun.  A
walk of the lun tree reveals that there is a constant, much
like name, ip,
or description, I just can't figure out how to implement it.
 The mib
variable is "lunName".  It's value is the path to
the lun on the storage
array which is constant.  Example - lunName.1 = STRING:
"/vol/vol3/lun0".
Ideally, I could use a target like this...

Target[vol3.lun0]:
lunReadBytes.#/vol/vol3/lun0&lunWriteBytes.#/vol/vol3/lu
n0:publicdevicename

but MRTG will make no attempt to search "lunName"
for the appropriate
index.  Is there a way around this issue other than writing
a script to do
all the work.  If not, is it possible to find the proper
index via a script
and pass the appropriate target to MRTG based on the
results?  Thanks.

 - Jeff


--
Unsubscribe mailto:mrtg-requestlist.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/
mrtg
FAQ         http://faq.mrtg.org   
Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz
.ch/lsg2.cgi

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )