monitor memory usage on w2k/2k3 server?

Edward Ford eford at nexusenergy.com
Thu Jun 2 18:30:28 CEST 2005


I finally got mine working with the nsclient program. I was getting nothing
and no luck from the net-snmp program..



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Daniel maher
Sent: Thursday, June 02, 2005 12:20 PM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] monitor memory usage on w2k/2k3 server?

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050602/1a1dbebe/attachment.html>


More information about the Users mailing list