I tried that command, and it doesn't quite do what I need. That will make it reespond with a "TCP OK" status should it receive a connection refused status. Then when it actually goes down, it will still generate a "TCP OK" status because the port is now available. So I would never get notified that anything changed.
I need it to take a status of "connection refused" as being "UP" and when it transitions to "TCP OK" as being "DOWN". Basically if the port is available (i.e. TCP OK), then I have an application down and not responding. That's what I'm trying to monitor.