Socket timeout issue

Jesús Arnáiz jesus.arnaiz at 0z0ne.com
Mon Apr 9 13:41:46 CEST 2007


I think I have some similar problem. I use nrpe as a daemon:
/usr/local/bin/nrpe -d -c /usr/local/etc/nrpe.cfg

My cfg says:
command_timeout=60
connection_timeout=300

But I see the "Socket timeout after 10 seconds" error. I thought it 
should wait 60 for the command and 300 for the connection. What is wrong?

Thanks for your help




Hari Sekhon escribió:
> you'll likely have to apt-get install xinetd which will uninstall inetd, 
> so you should probably check if you have any services running through 
> that (or any backdoors running through that ;-) )
> 
> if you do, you can convert the inetd config to xinetd with the itox command.
> 
> -h
> 
> Hari Sekhon
> 
> 
> 
> Paul Roberts wrote:
>> HI Hari,
>>  
>> I looked at that but I can't see the xinetd folder on Debian, should 
>> it be there by default?
>>  
>> Paul.
>>
>> ------------------------------------------------------------------------
>> *From:* Hari Sekhon [mailto:hpsekhon at googlemail.com]
>> *Sent:* 05 April 2007 15:03
>> *To:* Paul Roberts
>> *Cc:* Nagios Users mailinglist
>> *Subject:* Re: [Nagios-users] Socket timeout issue
>>
>> if you are running it through xinetd like you are supposed to then 
>> there is a log entry created on the system like so
>>
>>  xinetd[673]: START: nrpe pid=27671 from........
>>
>> -h
>> Hari Sekhon
>>   
>>
>>
>> Paul Roberts wrote:
>>> Sorry I don't want it to work locally just wanted to see if it ran
>>>
>>> ------------------------------------------------------------------------
>>> *From:* Hari Sekhon [mailto:hpsekhon at googlemail.com]
>>> *Sent:* 05 April 2007 14:58
>>> *To:* Paul Roberts
>>> *Cc:* Nagios Users mailinglist
>>> *Subject:* Re: [Nagios-users] Socket timeout issue
>>>
>>> how do you mean if nrpe will work locally?
>>>
>>> if you want to use nrpe on the local machine you can just give it the 
>>> hostname or the ip address (but you can't use "localhost" as it will 
>>> fail in the SSL handshake)
>>>
>>> -h
>>> Hari Sekhon
>>>   
>>>
>>>
>>> Paul Roberts wrote:
>>>> Command line I just wanted to see if nrpe would work locally 
>>>>
>>>> -----Original Message-----
>>>> From: Hari Sekhon [mailto:hpsekhon at googlemail.com] 
>>>> Sent: 05 April 2007 14:37
>>>> To: Paul Roberts
>>>> Cc: Nagios Users mailinglist
>>>> Subject: Re: [Nagios-users] Socket timeout issue
>>>>
>>>> aren't you missing a -c before check_disk?
>>>>
>>>> typo on command line or typo in email?
>>>>
>>>> -h
>>>>
>>>> Hari Sekhon
>>>>
>>>>
>>>>
>>>> Paul Roberts wrote:
>>>>   
>>>>> Hi All,
>>>>>
>>>>> Can someone help out with my CHECK_NRPE: Socket timeout after 10 
>>>>> seconds issue.
>>>>>
>>>>> I have Nagios running on a Debian server, runs tests to Windows Boxes OK.
>>>>>
>>>>> I am attempting to do remote checks of an Debian server.
>>>>>
>>>>> I can telnet on port 5666 to the remote server, netstat -l reports: 
>>>>> tcp        0      0 *:nrpe                  *:*                     LISTEN
>>>>>
>>>>> I can run this check on the remote server:
>>>>>
>>>>> # /usr/local/nagios/libexec/check_nrpe -H 10.0.10.200 -p 5666 -t 30 
>>>>> check_disk # NRPE v2.0
>>>>>
>>>>> What information/configurations files do you need from me?
>>>>>
>>>>> Regards
>>>>> Paul Roberts.
>>>>>
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> --- Take Surveys. Earn Cash. Influence the Future of IT Join 
>>>>> SourceForge.net's Techsay panel and you'll get the chance to share 
>>>>> your opinions on IT & business topics through brief surveys-and earn 
>>>>> cash 
>>>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV
>>>>> DEV _______________________________________________
>>>>> 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
>>>>>
>>>>>   
>>>>>     
>>>>
>>>>
>>>>   
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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