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!
connect to address 17.221.110.32 and port 12489: Connection
-
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
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.
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.
Re: connect to address 17.221.110.32 and port 12489: Connect
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?
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
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.
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
I am using 0.5.2035
Can you please let me know the location of ini file?
Can you please let me know the location of ini file?
Re: connect to address 17.221.110.32 and port 12489: Connect
Code: Select all
C:\Program Files\NSClient++\nsclient.iniCode: Select all
C:\Program Files (x86)\NSClient++\nsclient.iniRe: connect to address 17.221.110.32 and port 12489: Connect
Attached the ini file
You do not have the required permissions to view the files attached to this post.
Re: connect to address 17.221.110.32 and port 12489: Connect
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
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.