in reply to monitor a process's state.

What I would do:
  1. Define what "hung" means and how you can detect this (hard part).
  2. Write a nagios (or whatever monitoring tool you're using) script that checks for this condition (easy part).