You are here

Monitor memory usage of a windows process

3 posts / 0 new
Last post
d2sv5f5y
d2sv5f5y's picture
Monitor memory usage of a windows process

Is there a way to montior the memory usage of a specific windows process?

Specifically I'd like to monitor the size of the mysql process on our server ("mysqld.exe") and warn when it gets to x GB.

thanks,

Mark.

smarsh
smarsh's picture
Re: Monitor memory usage of a windows process

Hi Mark,

Yep you can - im doing this in Enterprise at the moment using the Windows Agentless checks:

nagios@ov-trn:/usr/local/nagios/libexec$ ./check_wmi_plus.pl --IgnoreMyOutDatedPerlModuleVersions -H 192.168.12.126 -u Administrator -p passwordremoved -m checkproc -s memory -a oracle   OK - Found 1 Instance(s) of "oracle" running. Total Private Memory=0.767GB, Total Working Set=0.597GB, Total Virtual Memory=1.367GB\nProcesses Found are  oracle (PID=3828|'Process Count'=1; 'Total Private Memory'=823992320Bytes; 'Total Working Set'=640749568Bytes; 'Total Virtual Memory'=1467904000Bytes;   nagios@ov-trn:/usr/local/nagios/libexec$   Where "oracle" would be the "mysqld.exe" your looking for.   These templates are in the Pro / Enterprise packages if you are interested.   Best, Sam
d2sv5f5y
d2sv5f5y's picture
Re: Monitor memory usage of a windows process

Thanks for your answer Sam. We have the Core version fo OpsView installed and don't want the expense of upgrading to Pro/Enterprise.

In the end I found a solution by using a nagios plugin called check_winproc_ram.

http://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows/check-winprog-memusage/details