Re:Ask HN: A simple tcp monitor ?
by huhtenberg on Sunday August 02, 2009 @03:48PM
(#737970)
There you go :)
To build:
To use:
0 is OK, 1 - syntax error, 2 - DNS error, 3 - OS error, 4 - TCP error. Call it from a shell script, look at the return value and, if it's non-zero, dispatch your message. Then stick the script itself into a cron schedule, and you are done.
[ Parent
| on HN ]
Thank you very much for the effort :)
It doesn't support timeouts.
Re:Ask HN: A simple tcp monitor ?
by huhtenberg on Monday August 03, 2009 @12:33AM
(#738617)
Define "timeout".