[Nagios-users] NSClient++: Connection Refused, again and again, with default config

2009-01-27 Thread 44kbps
Hi people of the world :P

I'm just running the NSclient on a Windows machine. I got the default
configuration of the NSC.ini but I have an error in the nagios:
Connection refused
I modified the NSC.ini to run the client on the 12489 port, and I add the IP
of the nagios server on allowed host.
I have no information about the client version, the cpu or some information
in the nagios.
I run a netstat in the windows machine and I get the listening port at 12489
but when I try to connect from telnet on the linux (nagios) machine
I've got a Connection closed by foreign host.
I scan the machine with the nmap. It don't show the 12489 open of filtered.

What can be wrong?
In the Windows machine there are no firewall.
--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] NSClient++: Connection Refused, again and again, with default config

2009-01-27 Thread Michael Medin
Best way to debug this is:
1, runt: NSClient++ /test (after stopping the service) and see what happends.

2, enable debug logging and check the nsc.log file.


// Michael Medin

 Hi people of the world :P

 I'm just running the NSclient on a Windows machine. I got the default
 configuration of the NSC.ini but I have an error in the nagios:
 Connection refused
 I modified the NSC.ini to run the client on the 12489 port, and I add the
 IP
 of the nagios server on allowed host.
 I have no information about the client version, the cpu or some
 information
 in the nagios.
 I run a netstat in the windows machine and I get the listening port at
 12489
 but when I try to connect from telnet on the linux (nagios) machine
 I've got a Connection closed by foreign host.
 I scan the machine with the nmap. It don't show the 12489 open of
 filtered.

 What can be wrong?
 In the Windows machine there are no firewall.
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] NSClient++: Connection Refused, again and again, with default config

2009-01-27 Thread Kevin Keane
Connection closed by foreign host really suggests that the connection 
could be established, but NSClient closes it immediately. Check for a 
typo in the allowed host configuration.

The rest is just general networking troubleshooting, in case I'm wrong 
on that.

First, a stupid question: you say that netstat shows that port 12489 is 
listening - but is it listening on the right interface/IP address? It 
may only be listening on 127.0.0.1 - localhost.

Can you ping from the Linux host to the Windows machine? If you can't, 
it's a network connectivity issue. Check cables, routers etc.

While you are at it, also check that you are using the correct DNS name, 
and that it maps to the correct IP address. I've sometimes connected to 
the wrong workstation by accident.

If you CAN ping from the Linux host to the Windows machine, try 
connecting to port 12489 from the Windows machine itself.

Try both connecting to localhost, and to the IP address of the windows 
machine.

If either one of these succeed, double-check that there really is no 
firewall on the Windows machine.

Also try connecting to port 12489 from another workstation connected to 
the same network switch. If that succeeds, there might be a 
router/firewall somewhere in your network that blocks this traffic.

44kbps wrote:
 Hi people of the world :P

 I'm just running the NSclient on a Windows machine. I got the default 
 configuration of the NSC.ini but I have an error in the nagios:
 Connection refused
 I modified the NSC.ini to run the client on the 12489 port, and I add 
 the IP of the nagios server on allowed host.
 I have no information about the client version, the cpu or some 
 information in the nagios.
 I run a netstat in the windows machine and I get the listening port at 
 12489 but when I try to connect from telnet on the linux (nagios) machine
 I've got a Connection closed by foreign host.
 I scan the machine with the nmap. It don't show the 12489 open of 
 filtered.

 What can be wrong?
 In the Windows machine there are no firewall.
 

 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 

 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue. 
 ::: Messages without supporting info will risk being sent to /dev/null


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null