check_tcp - how to check for immediately closed connection
Posted: Tue May 05, 2015 11:46 am
I'm trying to test a telnet connection with check_tcp. When the end-service is not working, it still accepts connections, but closes them immediately. So check_tcp always passes.
Is there anyway to make check_tcp require a few seconds of open connection? I tried using delay parameter - no good. I tried sending commands and using expected text, but I'm not familiar with what commands to send and via a manual test connection, it doesn't really respond to anything.
Thanks.
Is there anyway to make check_tcp require a few seconds of open connection? I tried using delay parameter - no good. I tried sending commands and using expected text, but I'm not familiar with what commands to send and via a manual test connection, it doesn't really respond to anything.
Thanks.