Monitor PostgreSQL databases for health, performance, and replication status
Monitor Postgres databases
check_postgres.pl$ check_postgres.pl --action=connection --host=localhost --database=mydb$ check_postgres.pl --action=wal_receiver_lag --host=standby.example.com --critical=1000$ check_postgres.pl --action=txn_idle --host=localhost --warning=300 --critical=600