connect to address 17.221.110.32 and port 12489: Connection

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

connect to address 17.221.110.32 and port 12489: Connection

Post by smapple »

Hello Team,

I am trying to monitor Windows CPU load using :

[[email protected] ~]$ /usr/local/nagios/libexec/check_nt -H 17.221.110.32 -s "Secret key" -p 12489 -v CPULOAD -l 5,80,90 connect to address 17.221.110.32 and port 12489: Connection refused could not fetch information from server

What is the secret Key here? How do I resolve this issue?

THanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by npolovenko »

Hello, @smapple. Either its a firewall/proxy issue on the windows server or most likely a misconfiguration in the nsclient.ini file. Do other nsclient checks work ok or all of them are not working?
Can you upload the nsclient.ini file from the windows server?
"Secret key" is the password in your nsclient.ini file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by smapple »

I did the modification on nclient.
Now I get this error :

NSClient - ERROR: No performance data from command: check_cpu

Is there anything I am missing?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by ssax »

Please upload a sanitized copy of your nsclient.ini so that we can help you further.

Additionally, what version of NSClient++ are you running? You can see the version listed next to the item in Control Panel > Programs and Features on the remote Windows server.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by smapple »

I am using 0.5.2035
Can you please let me know the location of ini file?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by ssax »

Code: Select all

C:\Program Files\NSClient++\nsclient.ini
OR

Code: Select all

C:\Program Files (x86)\NSClient++\nsclient.ini
Depending on which architecture you installed.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by smapple »

Attached the ini file
You do not have the required permissions to view the files attached to this post.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by smapple »

Is there anything that I must change?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: connect to address 17.221.110.32 and port 12489: Connect

Post by npolovenko »

Hi, @smapple. Please replace your nsclient.ini file with the one I attached to this post. Then go to the Windows Services menu, right click on the NSClient ++ service and select "restart". This should reload the new configuration. Let me know if your command works with my ini file.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked