Our friends at Bucardo created a useful, general-purpose PostgreSQL checking utility. The check_postgres tool currently has an inventory of more than 50 checks to monitor PostgreSQL servers.
While this is an exceptionally useful tool, integrating it into our overall stack is necessary to fully take advantage of its capabilities. This recipe will cover the basic usage and integration with Nagios for easy PostgreSQL monitoring of large database clusters.