To monitor memory usage by any process in windows host.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

To monitor memory usage by any process in windows host.

Post by RIDS_I2MP »

Hi Team,

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

Kindly suggest.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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
Former Nagios Employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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 -
Be sure to check out the Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

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

Post 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
Thanks & Regards,
I2MP Team.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

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

Post 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
Nagios XI 5.8.1
https://outsideit.net
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post 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 -
Be sure to check out the Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

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

Post 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
Thanks & Regards,
I2MP Team.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

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

Post 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...
Nagios XI 5.8.1
https://outsideit.net
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

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

Post by bwallace »

Thanks again Willem - OP, did you need assistance with implementing some of those other plugins you mentioned earlier, for any specific processes?
Be sure to check out the Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

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

Post 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'
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
Locked