Rép. : RE: [Nagios-users] monitor memory usage on w2k/2k3 server?

Serveur-Faucon Surveillance SrvFaucon at cslaval.qc.ca
Thu Jun 2 20:16:55 CEST 2005


Hi Daniel,

I had this in my old files...

** COMPAQ **
mibcpqHoPhysicalMemorySize=.1.3.6.1.4.1.232.11.2.13.1.0
cpqHoPhysicalMemoryFree   =.1.3.6.1.4.1.232.11.2.13.2.0

This is only good if you have some COMPAQ SNMP agent running on Windows 2000, since as I was searching the web, Windows 2000 alone seems to now really report correctly the memory usage.



---------------------------------------------------
Alexandre Racine - www.gardienvirtuel.com
Montréal, Québec, Canada

>>> "Daniel maher" <dmaher at acetechnology.com> 2005-06-02 12:20:23 >>>
Thanks to you and to everybody else that had some helpful suggestions.  It would appear that I'm out of luck on the 2000 servers * oh well!

 

 

 

Daniel Maher

System Engineer

ACE TECHNOLOGY INC.

 

 

   _____  

From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of vol
Sent: June 2, 2005 7:38 AM
To: nagios-users at lists.sourceforge.net 
Subject: Re: [Nagios-users] monitor memory usage on w2k/2k3 server?

 

Am 18:07 01.06.2005 schrieb Daniel maher:



Hello all,
 
I am looking for a way to monitor the usage of physical RAM on Windows 2000 (and 2003) servers.  I have tried Xavier Dusart's check_mem_2k.pl plugin, as well as Manubulon's check_snmp_storage.pl.  Dusart's plugin fails entirely, while Manubulon's only appears to pull out the virtual memory, not the physical RAM.  What makes this tricky (I suppose), is that I cannot install any agents on the Windows servers; this means no NSClient or any such thing.
 
Does anybody have any ideas?


Hello Daniel,

you can query W2K3 Server for physical memory. There is a table of storage entries (disks, virtual memory, physical memory) in the host resource MIB:

1.3.6.1.2.1.25.2.3.1.2.index            hrStorageType
1.3.6.1.2.1.25.2.3.1.3.index            hrStorageDesc
1.3.6.1.2.1.25.2.3.1.4.index            hrStorageAllocUnits
1.3.6.1.2.1.25.2.3.1.5.index            hrStorageSize
1.3.6.1.2.1.25.2.3.1.6.index            hrStorageUsed

with the type

25.2.1.2        type = physical mem

for physical memory. You have to search for "25.2.1.2" in the "Type" field to get the index. Then you have to query "AllocUnits", "Size" and "Used" for this index and multiply "AllocUnits" and "Size" to get the physical memory size (IIRC in Bytes). By multiply "AllocUnits" and "Used" you get the used physical memory (IIRC in Bytes).

This method unfortunately does not work for W2K.

-vol


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.4.0 - Release Date: 01/06/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.4.0 - Release Date: 01/06/2005
 



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list