New NSClient install - connection refused
New NSClient install - connection refused
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?
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?
Last edited by sharding on Fri Mar 07, 2014 2:12 pm, edited 1 time in total.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: New NSClient install - connection refused
Have you verified the port is open from the nagios machine?
Code: Select all
nmap -p 12489 [host\ip of windows box]Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: New NSClient install - connection refused
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
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
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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: New NSClient install - connection refused
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: New NSClient install - connection refused
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
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
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
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: New NSClient install - connection refused
If you could provide the nsc.ini file, that would be ideal!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: New NSClient install - connection refused
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"Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: New NSClient install - connection refused
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