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.
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 »

"connection refused by host is usually a result of:
- Nothing is listening on the IP:Port you are trying to connect to.
- The port is blocked by a firewall.

What does netstat -an on the client machine reveal? Is port 5666 listening?
If it is listening, I'd suspect a firewall is to blame, you may need to open :5666 on it.

Let us know if this helps, 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,

I guess the earlier message arised because I have not enabled NRPE in NSclient++, now I have enabled nrpe by editing the NSC.ini file by uncommenting "NRPEListener.dll" and "CheckExternalScripts.dll".

Now I am receiving the attached message.

Please find the attached snapshot for output of netstat -an command.

kindly suggest.
You do not have the required permissions to view the files attached to this post.
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 »

nsc.ini?? What version of NSClient are you using? I would recommend using 0.4.1.105 or 0.5.0.46. The NSClient config file is called nsclient.ini there.
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 »

Updating might help as Willem mentioned, if it'll work on W2K3.

After doing so, or if it does not work, please post your nsclient configuration file for us to look at.
Former Nagios Employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

You may also need to enable arguments for NSClient.
In the ini file on your windows system, make sure you have the following in the [NRPE] section.

Code: Select all

allow_arguments=1
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,

We are using below licence and version NSClient++
"GNU GENERAL PUBLIC LICENSE
Version 2, June 1991"

This monitoring will not work on this verion of NSClient++?
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

That version number doesn't look right. It should be like 0.3.9.x or 0.4.x.x.
If you go to this folder on your windows server and right click the executable, you should get the version number.

Code: Select all

C:\Program Files\NSClient++
In that folder, there should be a nsc.ini or a nsclient.ini file. Can you post those and a nsclient.log file so we can review them?

Can you login to the XI server, run the following command and post the output?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.147.108.140
This will tell us the version of the client and test basic connectivity.
Be sure to check out our Knowledgebase for helpful articles and solutions!
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 »

Version 2
Do you mean ver. 0.2?
I can see the following versions on the NSClient++ website - 0.3.x, 0.4.1, 0.4.2 (legacy), 0.4.3, 0.4.4, and 0.5.0...
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,

I am not able to find the Nsclient++ version by right clicking on the executable file at "C:/program files/nsclient++" folder.

I have executed the attached command and found the provided output, refer the attached snapshot.

I am also attaching the NSC.ini file and nsclient.log file.

Kindly suggest.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

There are some settings in the nsc.ini that need to be updated

Under the [modules] section
Change this from

Code: Select all

;NRPEListener.dll
;CheckExternalScripts.dll
to

Code: Select all

NRPEListener.dll
CheckExternalScripts.dll
Under the [Settings] section
Change this from

Code: Select all

allowed_hosts=10.147.108.46
to

Code: Select all

allowed_hosts=10.147.108.46, 10.148.160.4
Under the [NRPE] section
change this from

Code: Select all

;allow_arguments=0
;allow_nasty_meta_chars=0
to

Code: Select all

allow_arguments=1
allow_nasty_meta_chars=1
Save the file and restart the NSClient on the windows server.
Try your check again and see if it works now.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked