Page 1 of 2

New NSClient install - connection refused

Posted: Thu Mar 06, 2014 3:49 pm
by sharding
2008 R2 server only want to watch uptime, CPU, RAM, C drive, installed client , said to limit access to nagioxi server, allowed wiz to create checks, - all return connection refused.

I checked and the service is running on the win box, but cannot find any config options on client.

same setup as a test 2012 server which works fine, do I need to re-install the client with more options, or how is the ns client re-configured?

Re: New NSClient install - connection refused

Posted: Thu Mar 06, 2014 3:58 pm
by sreinhardt
Have you verified the port is open from the nagios machine?

Code: Select all

nmap -p 12489 [host\ip of windows box]

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 8:41 am
by sharding
Starting Nmap 5.51 ( http://nmap.org ) at 2014-03-07 07:35 CST
Nmap scan report for pehs-evault.psd202.org (10.190.1.9)
Host is up (0.0013s latency).
PORT STATE SERVICE
12489/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 5.58 seconds
[root@nagiosxi scripts]#

We don't have any firewalls active on win box and I ran a netstat -oa and that port 12849 is not being listened to on that server, so I'm thinking the nsclient again? could not find anything to configure it though just start and stop service and it is running according to services.msc

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 8:59 am
by BanditBBS
In C:\Program Files\NSClient++ there is a file nsc.ini. That is the configuration file. If you make any changes make sure and restart the service. I can't think of anything besides firewalls(on the machine or on the network) that would stop it from working if the service is started.

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 9:29 am
by sharding
yes there is the .ini file, nagios server set correctly and win server can ping it.

as said no firewalls on machines, border firewall would have nothing to do with it, nothing outside of lan. Thanks for info, we'll see what Nagios support says.

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 10:11 am
by slansing
NSClient itself does not have the ability to block the listening to of a port, there must be some reason that that port is not passing traffic, anti-virus? Have you tried changing the port nsclient listens on in the nsc.ini file?

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 10:48 am
by sharding
Not on this machine, the ini file for some odd reason had this commented out, so after changing that and restarting the service it still doesn't show in an netstat -oa so server is not listening on that port.

If support want the whole file, I can provide that or just re-install the client if you can tell me which options I should need, I only want to check for uptime,CPU,RAM and C drive.

not doing fancy stuff for this one

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 12:04 pm
by sreinhardt
If you could provide the nsc.ini file, that would be ideal!

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 12:23 pm
by lmiltchev
Can you upload the nsc.ini file (hide sensitive info)? Also, run the following commands on the Windows box in CMD and show the output:

Code: Select all

tasklist | find "nsclient"
netstat -an | find "12489"

Re: New NSClient install - connection refused

Posted: Fri Mar 07, 2014 1:53 pm
by sharding
your website would not allow me to send these to you, I have two attachments so e-mail them to the support address marked for your attention