LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-01-2009, 08:24 AM   #1
ravis.1808@gmail.com
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
Arrow socket timeout error in nagios


Hi
I am working on nagios since last 2 months.
I have configured it properly for monitoring remote linux machines.
When i am checking some services on remote machine,it is saying " CRITICAL - Socket timeout after 10 seconds" .
I don't know why this error occurs,please tell me the solution for this.
thanks for the help..........
 
Old 07-01-2009, 10:59 AM   #2
gael
Member
 
Registered: Aug 2008
Posts: 41

Rep: Reputation: 15
Are you using NRPE?
 
Old 07-02-2009, 04:46 AM   #3
ravis.1808@gmail.com
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
socket timeout error in nagios

yes i am using NRPE..............
is there any problem then.............
 
Old 07-02-2009, 07:31 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ravis.1808@gmail.com View Post
yes i am using NRPE..............
is there any problem then.............
Assuming you are using NRPE for these checks, you will get this error if the NRPE client cannot be contacted by the nagios server.
This could be a port issue, it could be a service issue...i dont know.
A good diagnostic would be to run the nagios cmd check from the nagios command line and see what the error is then....and then run it locally on the server being checked...
You can see what the command is by looking at whatever file has the 'define service' commands in. Use the check_command line.
 
Old 07-03-2009, 04:51 AM   #5
gael
Member
 
Registered: Aug 2008
Posts: 41

Rep: Reputation: 15
Yes on the box running NRPE, you need to open TCP/5666 on your firewall.
The nrpe service has to run (/etc/init.d/nrpe start)

In /etc/nagios/nrpe.cfg (on CentOS at least), make sure the following settings are properly defined:
Code:
allowed_hosts=IP_of_the_Nagios_Server
dont_blame_nrpe=1 (with 1 it means you can send arguments when doing the checks)
And to test the connection is not timing out, go on your nagios server and run the check_nrpe command as follow:

Code:
/usr/lib/nagios/plugins/check_nrpe -H IP_of_the_box_to_check
If it is not there, use locate to find the script...

HTH

Gael
 
Old 04-18-2018, 07:43 AM   #6
mpinoc
LQ Newbie
 
Registered: Apr 2018
Posts: 1

Rep: Reputation: Disabled
intermittent nagios socket timeout error

Hi,

If the socket timeout error is an intermittent error, meaning, it may happen anyday or anytime but often lasts only for about 2 minutes or so, and is running on NRPE, do you think is still an issue on the the TCP?

have you experienced intermittent socket timeout errors?
 
Old 04-18-2018, 08:18 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by mpinoc View Post
Hi,
If the socket timeout error is an intermittent error, meaning, it may happen anyday or anytime but often lasts only for about 2 minutes or so, and is running on NRPE, do you think is still an issue on the the TCP? have you experienced intermittent socket timeout errors?
Read the LQ Rules...you have re-opened a thread that had been closed for NINE YEARS. I think the OP has moved on by now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About multiple timeout in Socket Programming lisa000 Linux - General 1 10-20-2007 06:07 PM
About multiple timeout in Socket Programming lisa000 Linux - Software 1 10-20-2007 06:07 PM
Fedora 3 - PHP - Socket timeout b_whelan Linux - Software 2 09-29-2005 03:41 AM
Socket timeout (c question) alaios Programming 13 09-11-2005 12:43 PM
help!!! how can i timeout a socket connect call... ? bzImage Programming 1 03-06-2002 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration