Socket Timeout after 10 Seconds

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Socket Timeout after 10 Seconds

Post by tgriep »

I took a look at the nsclient.ini file it is empty and does not have any settings so that is why the check_nt command is failing.

What you need to do is to reinstall the NSClient++ agent by following this document.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

It says that is is for Nagios XI but it will work for Nagios Core as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Socket Timeout after 10 Seconds

Post by amitgupta19 »

@tgriep

Thanks for Highlighting the issue.
I replaced the file from another server and it is working now.

But i have another server where this file is blank, and it is blank. Shockingly it is working. Any idea what could be the reason.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Socket Timeout after 10 Seconds

Post by tgriep »

You could be using a different agent and are running different check commands.
Or, you are testing the wrong host.
Or, you have another copy of the NSClient++ agent that is installed to a different folder and that one is running.
Be sure to check out our Knowledgebase for helpful articles and solutions!
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Socket Timeout after 10 Seconds

Post by amitgupta19 »

Today i added one more server to the monitoring
It has started giving the same Error.

I have attached the nclient file from that server. Kindly look into it.
Attachments
nsclient.ini
(8.59 KiB) Downloaded 449 times
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Socket Timeout after 10 Seconds

Post by amitgupta19 »

Please ignore the above message.

I have resolved it.

Thanks for your support.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Socket Timeout after 10 Seconds

Post by tgriep »

Thanks for posting back that you figured out the issue. If you don't have any further related questions, shall I close and lock the post as solved?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked