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.
nsca gives timeout error : Timeout after 10 seconds
Re: nsca gives timeout error : Timeout after 10 seconds
What version of NSCA are you running?
Former Nagios Employee
Re: nsca gives timeout error : Timeout after 10 seconds
I am using NSCA Client 2.7.2
Re: nsca gives timeout error : Timeout after 10 seconds
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?
Thank you
Also, are you running the NSCA server in daemon mode or through xinetd?
Code: Select all
ps aux |grep nscaThank you
Re: nsca gives timeout error : Timeout after 10 seconds
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
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.
Re: nsca gives timeout error : Timeout after 10 seconds
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
-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
Re: nsca gives timeout error : Timeout after 10 seconds
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.
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!