Swap and Real Memory

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
remm
Posts: 24
Joined: Wed Apr 21, 2004 5:25 am
Location: Tours

Swap and Real Memory

Post by remm »

Hi,
I'd like to graph the following memory parameters on Win2k servers :
TotalSwap
AvailSwap
TotalReal
AvailReal
I don't know what are the appropriate oids :-? , does anyone know ?
thanks :wink:
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Remm,

Someone needs to write a script to access the HostResourceMib in Windows 2000/XP. No support for earlier versions of Windows however. Here is some additional information:

Total Real in KBytes:
.1.3.6.1.2.1.25.2.2.0
Total Virtual in KBytes (Depends on Number of Volumes)
A - .1.3.6.1.2.1.25.2.3.1.1.X
Virtual in Use is a Calculation
B - .1.3.6.1.2.1.25.2.3.1.4.X - Size of Allocation Units in Bytes
C - .1.3.6.1.2.1.25.2.3.1.5.X - Size of Partition in Allocation Units (B*C=A)
D - .1.3.6.1.2.1.25.2.3.1.6.X - Number of Allocation Units In Use

Therefore depending on X, you are looking for
Total Virtual KBytes in Use is:
B * D / 1024 = Virtual KBytes in Use

For Real Memory, let me see, don't see in in the HostResourceMib, you may have to use WMI. Sorry. I do believe that someone out there has some scripts to poll WMI counters. Keep asking.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest