Problem with socket timeouts.
Dru
andru at treshna.com
Tue Nov 16 11:27:28 CET 2004
I've managed to get it going now. Thanks for the help.
I purged the debian packages, and removed all previous config files and
downloaded tar's.
I suspect it could of been one of the configure options on compiling
causing it not working or something else.
I'm not completely sure. But it works now.
Jan Scholten wrote:
> I'm Using Debian Sarge and it works fine:
> # 'check_smtp' command definition
> define command{
> command_name check_smtp
> command_line /usr/lib/nagios/plugins/check_smtp -H
> $HOSTADDRESS$ -t 20
> }
>
> gives me the socket timeout after 20 Seconds. Dunno why i receive that
> much timeouts (maybe i need more hardware?)
>
> Well add a "-t <timeout in secs>" to your commands and it should have
> a bigger timeout.
>
> Jan
>
>>
>> I've been trying for the last few days to get this working but i keep
>> getting Socket timeout after 10 seconds for any of the service checks
>> that use sockets. I use debian sarge and have tried re-compiling
>> plugins but that hasn't work. If i run the individual plugins they
>> execute fine without problems. My command.cfg file is fine, and it
>> seems to give this error message for every type of scoket based
>> check. Is there anyway to go get this working so it actually works?
>>
>> I'm using nagios-pgsql. Here are some of the config file extracts
>>
>> from checkcommmand.cfg
>>
>> # 'check_smtp' command definition
>> define command{
>> command_name check_smtp
>> command_line /usr/lib/nagios/plugins/check_smtp -H
>> $HOSTADDRESS$
>> }
>>
>> service.cfg
>>
>> # localhost smtp
>> define service{
>> use generic-service
>> host_name michael
>> service_description SMTP
>> is_volatile 0
>> check_period 24x7
>> max_check_attempts 3
>> normal_check_interval 1
>> retry_check_interval 1
>> contact_groups treshna
>> notification_interval 120
>> notification_period 24x7
>> notification_options w,u,c,r
>> check_command check_smtp
>> }
>>
>> Does anyone else run debian and have it working? Is there something
>> real special to get it not to do a socket timeout like that? i tried
>> changing the DEFAULT_SOCKET timeout in common.h but that had no effect
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: InterSystems CACHE
>> FREE OODBMS DOWNLOAD - A multidimensional database that combines
>> robust object and relational technologies, making it a perfect match
>> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
>> _______________________________________________
>> 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
>>
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> 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
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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