Page 1 of 1

nsca gives timeout error : Timeout after 10 seconds

Posted: Tue Aug 23, 2016 12:51 am
by viccsjain
I have gone through multiple internet sites to find reason and solution of this issue.
But did not get any useful information.
I am having two linux setups one is host machine and another is client machine. I am getting timeout issue whenever it tries to send updates to host machine.
If i do restart of nsca service on host, this works fine for almost 12 hours and after that again timeout error.
Could you please provide me some useful information on this issue and how we can tackle this issue ? I can not restart nsca service everytime.

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Tue Aug 23, 2016 11:43 am
by rkennedy
What version of NSCA are you running?

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Tue Aug 23, 2016 11:13 pm
by viccsjain
I am using NSCA Client 2.7.2

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Wed Aug 24, 2016 12:16 pm
by ssax
Are you seeing anything in your /var/log/messages on the NSCA server (not the client)?

Also, are you running the NSCA server in daemon mode or through xinetd?

Code: Select all

ps aux |grep nsca

Thank you

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Wed Aug 24, 2016 10:02 pm
by viccsjain
I do not see any logs in messages file.
Probably debugging was disabled. I will enable it.

nsca is running as following:
[admin@linuxsetup ~]$ ps ax | grep nsca
3392 ? Ss 0:01 /usr/sbin/nsca -s -c /etc/nagios/nsca.cfg

I am not sure what is use of -s option here.

Thanks
Viksa

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Thu Aug 25, 2016 3:47 pm
by tmcdonald
Let us know what you come up with after enabling debugging!

-s is short for --single and is for single-process daemon mode:

https://github.com/NagiosEnterprises/ns ... ca.c#L1381

Code: Select all

[root@localhost bin]# ./nsca --help | grep single
   --single    = Run as a standalone single-process daemon (default)

Re: nsca gives timeout error : Timeout after 10 seconds

Posted: Thu Aug 25, 2016 3:52 pm
by tgriep
First thing you should do is to upgrade to the latest version of NSCA. There have been some updates that could fix the issue you are having.
https://sourceforge.net/projects/nagios ... sca-2.9.1/
You may have to upgrade the server and clients at the same time.

The -s option means that nsca is Running as a standalone single-process daemon.
You can quickly try and change it to -d for Running as a standalone multi-process daemon and see if that helps.