Connection refused message while monitoring Windows host
Posted: Mon Feb 15, 2016 4:24 am
Hi Team,
We have enabled monitoring on a windows host, monitoring was working fine but now we are receiving attached error message i.e connection refused.
I have restarted the NSClient++ service on remote host, but still the issue persists.
I have checked below points in the NSC.ini file
1. NSClientListener.dll is uncommented.
2. File consists of nagios ip in allowed host address section as shown below:
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
allowed_hosts=10.147.108.45
password=nag1osadm1n
;
3. NSClient port 12489 is mentioned in the NSC.ini file
[NSClient]
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.
; If you leave this blank the global version will be used instead.
;allowed_hosts=
;
;# NSCLIENT PORT NUMBER
; This is the port the NSClientListener.dll will listen to.
;port=12489
;
4. I have executed a command "netstat -an" on remote host, refer the attachment for the output.
Kindly let us know your comments on this.
We have enabled monitoring on a windows host, monitoring was working fine but now we are receiving attached error message i.e connection refused.
I have restarted the NSClient++ service on remote host, but still the issue persists.
I have checked below points in the NSC.ini file
1. NSClientListener.dll is uncommented.
2. File consists of nagios ip in allowed host address section as shown below:
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
allowed_hosts=10.147.108.45
password=nag1osadm1n
;
3. NSClient port 12489 is mentioned in the NSC.ini file
[NSClient]
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.
; If you leave this blank the global version will be used instead.
;allowed_hosts=
;
;# NSCLIENT PORT NUMBER
; This is the port the NSClientListener.dll will listen to.
;port=12489
;
4. I have executed a command "netstat -an" on remote host, refer the attachment for the output.
Kindly let us know your comments on this.