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

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

Post by RIDS_I2MP »

Hi Team,

I have made the suggested changes now I am receiving attached message.

Kindly suggest.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Is powershell.exe in your path? Check a solution to a similar problem, described here:

http://stackoverflow.com/questions/2977 ... able-progr
Be sure to check out our 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,

The link didn't help much.

can you suggest some other solution?
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 »

Hey,

Are you able to run the script locally on the server? Are you able to run the script on a different server? Are you able to run a different Powershell script. Could you please try upgrading to 0.5.0.48 and try again?

Grtz
Nagios XI 5.8.1
https://outsideit.net
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 »

Thanks @WillemDH!

As mentioned, please run the script locally and show us the full input / output. Just to clarify - is this a Windows 2003 machine? Does it have Powershell installed?
Former Nagios Employee
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,

Below attached is the entry mentioned in NSC.ini file and also refer the output attached when command is executed locally on the remote host.

I have copied "check_ms_iis_application_pool.ps1" file to NSClient++/scripts/powershell folder.

Kindly let us also know what is powershell.exe? Is it any exe file which we need to place on the remote host?
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 »

Powershell is a Windows scripting language, and is on most newer machines standard. I believe you have to install it seperate on Windows 2003. Talk to your Windows team and request that powershell is installed, then it should work properly.
Former Nagios Employee
Locked