How to change the timeout on check_tcp plugin


#1

This is what I get in my logs.

[03-03-2006 11:16:35] SERVICE NOTIFICATION: support;Ind_ad1;Checks TCP;CRITICAL;notify-by-email;Socket timeout after 10 seconds
[03-03-2006 11:16:35] SERVICE ALERT: Ind_ad1;Checks TCP;CRITICAL;HARD;5;Socket timeout after 10 seconds
[03-03-2006 11:16:35] HOST ALERT: Ind_ad1;UP;SOFT;3;TCP OK - 0.001 second response time on port 135
[03-03-2006 11:16:35] HOST ALERT: Ind_ad1;DOWN;SOFT;2;Socket timeout after 10 seconds
[03-03-2006 11:16:25] HOST ALERT: Ind_ad1;DOWN;SOFT;1;Socket timeout after 10 seconds
[03-03-2006 11:14:05] SERVICE ALERT: Ind_ad1;Checks TCP;CRITICAL;SOFT;4;Socket timeout after 10 seconds
[03-03-2006 11:12:15] SERVICE ALERT: Ind_ad1;Checks TCP;CRITICAL;SOFT;3;Socket timeout after 10 seconds
[03-03-2006 11:10:05] SERVICE ALERT: Ind_ad1;Checks TCP;CRITICAL;SOFT;2;Socket timeout after 10 seconds
[03-03-2006 11:08:15] SERVICE ALERT: Ind_ad1;Checks TCP;CRITICAL;SOFT;1;Socket timeout after 10 seconds

How do I change the timeout value?


#2

./check_tcp --help
Pay very close attention to the part that says “Seconds before connection times out (default: 10)”


#3

Thanks.