Page 1 of 1

connect to address 17.221.110.32 and port 12489: Connection

Posted: Mon Jan 07, 2019 5:08 pm
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!

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 5:24 pm
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.

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 5:43 pm
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?

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 5:46 pm
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.

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 5:53 pm
by smapple
I am using 0.5.2035
Can you please let me know the location of ini file?

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 5:57 pm
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.

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 6:06 pm
by smapple
Attached the ini file

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Mon Jan 07, 2019 6:39 pm
by smapple
Is there anything that I must change?

Re: connect to address 17.221.110.32 and port 12489: Connect

Posted: Tue Jan 08, 2019 1:23 pm
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.