под винду подсказать не могу, т.к. не пользуюсь данной OS
могу тока спросить
гугла и вот что он говорит:
1.
http://forums.adventnet.com/viewtopic.php?t=2418You can find the CPU utilization of windows system by querying the oid .1.3.6.1.2.1.25.3.3.1.2 (.iso.org.dod.internet.mgmt.mib-2.host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad) in HOST-RESOURCES-MIB.
There is no direct OID for getting memory utilization ,However we can obtain the same by querying the OID 1.3.6.1.2.1.25.5.1.1.2 from the same MIB which fetches the individual memory usage of all the process. The sum of these memory usages by the processes divided by the total memory available for processes which can be obtained from the OID .1.3.6.1.2.1.25.2.2,will get you the memory utilization .
Make sure that HOST-RESOURCE-MIB is implemented in your snmp agent . If not, refer the agent documentation as such to know how to load the MIB in your agent.
From the manager stand point you need to use "-m" option for loading MIB's.
For example: java snmpget [-m MIB_files] host OID ,will load MIB file that is mentioned and will perform "snmpget" in the corresponding OID.
2.
NET-SNMP Tutorial -- Using local MIBs3.
Try oid .1.3.6.1.2.1.25.3.3.1.2 for cpu utilization
4.
For Win2K processor load, I am using the hrProcessorLoad entry
(1.3.6.1.2.1.25.3.3.1.2.5) from
.iso.org.dod.internet.mgmt.mib-2.host.hrdevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.
You need to walk 1.3.6.1.2.1.25.3.3.1.2 to figure out what the instance
should be. On my boxes, it is has consistently been .5.
I have found that you need to multiply Processor Load captures by 100 to
get around MRTG rounding problems. I also seem to remember reading
somewhere that the snmp4w2k MIBs have a problem with multiple processors
but can't remember where I saw that (and I haven't seen any problems on my
multiprocessor boxes).
On my Win2K boxes, 1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.0 is
.iso.org.dod.internet.private.enterprise.microsoft.software.systems.os.windowsNT.performance.cpuprocessorTable.cpuprocessorEntry.cpuPercentProccessorTime
and holds no values when I walk it.
5.
http://forums.adventnet.com/Once more,in windows(2000,xp),the OID of cpu is 1.3.6.1.2.1.25.3.3.1.2 .
6.
http://www.netuality.ro/monitoring-windows-servers-with-snmpFor instance, .1.3.6.1.2.1.25.3.3.1.2.1 -> .1.3.6.1.2.1.25.3.3.1.2.4 the OID for CPU load on each of the 4 virtual CPUs [it’s a dual Xeon with HT].
Memory-related OIDs for my configuration are :
* .1.3.6.1.2.1.25.2.3.1.5.6 - Total physical memory
* .1.3.6.1.2.1.25.2.3.1.6.6 - Used physical memory
* .1.3.6.1.2.1.25.2.3.1.6.6 - Total virtual memory [”virtual”=”swap” in Windows lingo]
* .1.3.6.1.2.1.25.2.3.1.6.6 - Used virtual memory
под FreeBSD для графика по CPU использую след. OID:
- Код: Выделить всё
Target[cpu]: .1.3.6.1.4.1.2021.11.9.0&.1.3.6.1.4.1.2021.11.9.0:RO-localhost@localhost + .1.3.6.1.4.1.2021.11.10.0&.1.3.6.1.4.1.2021.11.10.0:RO-localhost@localhost