Pgreplchk is a project mainly written in Perl, it's free.
PostgreSQL 9.x streaming replication status checker
pgreplchk.pl -- PostgreSQL 9.x replication checker https://github.com/bovine/pgreplchk
Connects simultaneously to two PostgreSQL databases and checks the Streaming Replication status, by comparing the transaction ids and computing the replication delay.