Hi Team,
We are getting "connection refused" error while monitoring a windows machine using NSClient. We have already opened 12489 port. Also, the config file looks fine to me.
Please suggest how to resolve this error.
Connection refused
Re: Connection refused
Hi,
How are you doing?
Could you please try the below command on your Nagios XI prompt?
Just want to see if you can communicate with the remote NSClient++ machine.
Please upload outputs of this command.
Example:
nmap -Pn -p 12489 x.x.x.x
Install NSClient:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Configure NSClient:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Please run the below command on your Nagios XI prompt and also share outputs:
Please replace "x.x.x.x" with the IP of your remote NSClient machine and "yourNSClientPassword" inside
C:\Program Files\NSClient++\nsclient.ini file.
Best Regards,
Vinh
How are you doing?
Could you please try the below command on your Nagios XI prompt?
Just want to see if you can communicate with the remote NSClient++ machine.
Please upload outputs of this command.
Code: Select all
nmap -Pn -p 12489 x.x.x.x
nmap -Pn -p 12489 x.x.x.x
Code: Select all
Starting Nmap 6.47 ( http://nmap.org ) at 2021-06-07 13:15 CDT
Nmap scan report for x.x.x.x
Host is up (0.0029s latency).
PORT STATE SERVICE
12489/tcp open unknown
MAC Address: F8:0B:CB:27:F4:00 (Unknown)
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Configure NSClient:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Please run the below command on your Nagios XI prompt and also share outputs:
Please replace "x.x.x.x" with the IP of your remote NSClient machine and "yourNSClientPassword" inside
C:\Program Files\NSClient++\nsclient.ini file.
Code: Select all
/usr/local/nagios/libexec/check_nt -H x.x.x.x -p 12489 -s 'yourNSClientPassword' -v CPULOAD -l 5,80,90
Vinh
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
Re: Connection refused
Hello Team,
I think there are some changes required in config file. I can see two config files and not sure what changes are required.
Could you please check and suggest?
I think there are some changes required in config file. I can see two config files and not sure what changes are required.
Could you please check and suggest?
You do not have the required permissions to view the files attached to this post.
Re: Connection refused
Hi,
How are you doing?
What version of NSClient++ are you running?
The configuration file in NSClient++ 0.3.x is called "NSC.ini" .... (very old, you might want to rename this to something else like "NSC.ini.old" .... and upgrade if you are still using the 0.3.x version.)
The configuration file in NSClient++ 0.4.x(or newer) is called "nsclient.ini".
I currently have NSClient++ 0.5.x installed and the configuration file is called "nsclient.ini".
Please upgrade your NSCleint++ to the 0.4.x or 0.5.x, if you can.
I have attached my "nsclient.ini" below and can be used as an example.
Best Regards,
Vinh
How are you doing?
What version of NSClient++ are you running?
The configuration file in NSClient++ 0.3.x is called "NSC.ini" .... (very old, you might want to rename this to something else like "NSC.ini.old" .... and upgrade if you are still using the 0.3.x version.)
The configuration file in NSClient++ 0.4.x(or newer) is called "nsclient.ini".
I currently have NSClient++ 0.5.x installed and the configuration file is called "nsclient.ini".
Please upgrade your NSCleint++ to the 0.4.x or 0.5.x, if you can.
I have attached my "nsclient.ini" below and can be used as an example.
Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.