Nagios script to check replication lag between master and slave Postgresql servers