Page 1 of 3

To monitor memory usage by any process in windows host.

Posted: Tue May 24, 2016 6:29 am
by RIDS_I2MP
Hi Team,

We want to monitor memory usage by any process of windows host.

Kindly suggest.

Re: To monitor memory usage by any process in windows host.

Posted: Tue May 24, 2016 10:29 am
by rkennedy
There are a couple plugins on our Exchange that should work for this, give them a try and let us know if you have any questions -
https://exchange.nagios.org/directory/P ... ss/details
https://exchange.nagios.org/directory/P ... ng/details

Re: To monitor memory usage by any process in windows host.

Posted: Tue May 24, 2016 10:31 am
by bwallace
Monitoring private services or attributes of a Windows machine requires that you install an agent on it. Do you already have NSClient++ installed on the Windows machines?
If so, you could try using NSclient++ and perf counter checks. You'll first have to identify the right perf counter using the windows Perfmon application. There is an example of such here:

http://digital.ni.com/public.nsf/allkb/ ... 2B00447A2E


Additionally, there are a number of other options here:
https://exchange.nagios.org/index.php?o ... 1456514247

Certainly let us know what will work best in your environment and what specific processes you're looking to monitor - thanks -

Re: To monitor memory usage by any process in windows host.

Posted: Wed May 25, 2016 1:29 am
by RIDS_I2MP
Hi Team,

Thanks for the help.

Answering your questions:

Yes nsclient++ agent is installed on the remote host.
Process "w3wp.exe" we need to monitor as of now, in future we need to monitor other process as well.

I went through the links, I can find below links which can help me achieve my goal. Kindly let me know how to use any one of the below plugins as I am not able to find the method to use them:
1) https://exchange.nagios.org/directory/P ... ge/details
2) https://exchange.nagios.org/directory/P ... ng/details
3) https://exchange.nagios.org/directory/P ... ss/details
4) https://exchange.nagios.org/directory/P ... ss/details

Re: To monitor memory usage by any process in windows host.

Posted: Wed May 25, 2016 5:48 am
by WillemDH
if you want to monitor the w3wp.exe process, you might be happy with this plugin:

https://exchange.nagios.org/directory/P ... ol/details

it allows you to specify an application pool, aft which the script will search the associated w3wp.exe process and return iis app count, memory and cpu %.

Grtz

Re: To monitor memory usage by any process in windows host.

Posted: Wed May 25, 2016 9:13 am
by bwallace
Thanks WillemDH, I don't why I didn't recommend that plugin in the first place!
OP, let us know how it goes and if we can be of any assistance -

Re: To monitor memory usage by any process in windows host.

Posted: Thu May 26, 2016 7:35 am
by RIDS_I2MP
Hi Team,

In future I would like to monitor memory usage of other processes as well, will this plugin be useful for monitoring them as well?
WillemDH wrote:if you want to monitor the w3wp.exe process, you might be happy with this plugin:

https://exchange.nagios.org/directory/P ... ol/details

it allows you to specify an application pool, aft which the script will search the associated w3wp.exe process and return iis app count, memory and cpu %.

Grtz

Re: To monitor memory usage by any process in windows host.

Posted: Thu May 26, 2016 10:51 am
by WillemDH
No, it only works for iis application pools this one, but I have one in the works that will work for other processes too. I just need to find some time to finish it, but I'm superbusy atm, so it might be for after the summer...

Re: To monitor memory usage by any process in windows host.

Posted: Thu May 26, 2016 3:46 pm
by bwallace
Thanks again Willem - OP, did you need assistance with implementing some of those other plugins you mentioned earlier, for any specific processes?

Re: To monitor memory usage by any process in windows host.

Posted: Thu Jun 02, 2016 2:19 am
by RIDS_I2MP
Hi Team,

I am using the below option to monitor the memory usage of w3wp.exe process on a remote host (refer the attachment for remote host details) and the IIS version is 6.0.
WillemDH wrote:if you want to monitor the w3wp.exe process, you might be happy with this plugin:

https://exchange.nagios.org/directory/P ... ol/details

it allows you to specify an application pool, aft which the script will search the associated w3wp.exe process and return iis app count, memory and cpu %.

Grtz
I have copied "check_ms_iis_application_pool.ps1" file to NSClient++/scripts/powershell folder and have added below command in nsclient.ini file on remote host under "external scripts" section:

"check_ms_iis_application_pool=cmd /c echo scripts/powershell/check_ms_iis_application_pool.ps1 $ARG1$; exit $LastExitCode | powershell.exe /noprofile -command -"

Then I fired below command from nagios xi server, but I am receiving "connection refused by host" message:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.147.108.140 -p 5666 -t 30 -c check_ms_iis_application_pool -a '-A w3wp.exe'