nsca gives timeout error : 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.
Locked
viccsjain
Posts: 3
Joined: Tue Aug 23, 2016 12:44 am

nsca gives timeout error : Timeout after 10 seconds

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nsca gives timeout error : Timeout after 10 seconds

Post by rkennedy »

What version of NSCA are you running?
Former Nagios Employee
viccsjain
Posts: 3
Joined: Tue Aug 23, 2016 12:44 am

Re: nsca gives timeout error : Timeout after 10 seconds

Post by viccsjain »

I am using NSCA Client 2.7.2
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nsca gives timeout error : Timeout after 10 seconds

Post 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
viccsjain
Posts: 3
Joined: Tue Aug 23, 2016 12:44 am

Re: nsca gives timeout error : Timeout after 10 seconds

Post 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
Last edited by viccsjain on Mon Sep 12, 2016 5:25 am, edited 1 time in total.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nsca gives timeout error : Timeout after 10 seconds

Post 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)
Former Nagios employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nsca gives timeout error : Timeout after 10 seconds

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked