CHECK_NRPE: Socket timeout after 10 seconds.
Mark Young
myoung at nagios.org
Tue Sep 2 17:42:37 CEST 2008
On Sep 2, 2008, at 9:44 AM, J. Bakshi wrote:
> J. Bakshi wrote:
>> Alex Dehaini wrote:
>>
>>> Dude,
>>>
>>> I am assisting with nagios not your firewall. Read your firewall
>>> docs
>>> very well. Remember to always read the documentation carefully
>>> before
>>> requesting for assistance that are already in the docs.
>>>
>>
>> The nrpe docs mentions abt the firewall rules which I have already
>> used,
>> but no luck :-(
>>
>
> Not firewall; I have solved the problem by incresing time with -t
From what you are describing I believe that this is a problem with
your xinetd nrpe configuration. I run into this problem a lot. By
default Xinet will only allow so many instances per second that if
exceeded xinet will refuse connects for certain amount of time.
Basically your remote server thinks that it is being DDoS. Increasing
the time is only covering a symptom.
You can change this globally or per service by adding these lines in
ether /etc/xinetd.conf or /etc/xinetd.d/nrpe. You can play with the
exact numbers you need. I believe the default is 50 connections a
second.
# CPS where 100 connection per second with a timepout of 10 seconds if
exceded.
# Max number of instances running
[myoung at vserve xinetd.d]# more nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
disable = no
only_from = 127.0.0.1,IP.ADDRESS.OF.NAGIOS
cps = 100 10
instances = 300
}
Good luck!
Mark Young
___
Nagios Enterprises, LLC
Web: www.nagios.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list