check_postgres is a script for monitoring various attributes of your database (transaction id status, blocked queries, long running queries, connection status and more). It is designed to work with Nagios, MRTG, or in standalone scripts.WWW: http://bucardo.org/wiki/Check_postgres