[mrtg] Memory Usage with Changing Instances
Jonathan Black
jblack2 at smartertek.net
Tue Jul 22 23:52:35 CEST 2008
I've been trying to graph Physical Memory usage on a Windows 2003 Server
and run into a problem with changing OIDs. This server has a USB
Removable Hard Disk plugged in that gets swapped out about once a week.
The problem is whenever I unplug or replug the hard disk the OID for the
Physical Memory Usage changes. A SNMPWALK is attached below:
c:\>snmpwalk -v 2c -c public localhost HOST-RESOURCES-MIB::hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label: Serial Number
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: E:\ Label:Removeable USB
Drive
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: F:\ Label:DATA Serial
Number
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Physical Memory
Above the USB drive is .4 and physical memory is .7 at this point.
c:\>snmpwalk -v 2c -c public localhost HOST-RESOURCES-MIB::hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: A:\
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: C:\ Label: Serial Number
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: D:\
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: F:\ Label:DATA Serial Number
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: Virtual Memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Physical Memory
Now that the drive is removed Physical Memory shifts to .6 .
How can I specify the instance that matches "Physical Memory" and not
actually an OID? Thanks!
Jonathan
More information about the mrtg
mailing list