Couldn't find an easy & reliable way to check if memcached is running (for HA tools). Current check scripts on the net are generally stalling when memcached hits to maximum connections. So I wrote a dirty script that timeouts after 1 second on unsuccesful try.
It's ugly but you get the idea.
Why if ? Because netcat doesn't exit with error status on timeout.
Here is the script: [Link]