Skip to content

accenture016/Check-Postgres-Replication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Check Postgres Replication

Script to check postgres replication

Version Buils

Tested on PostgresSQL 9.5

Original by https://exchange.nagios.org/directory/Plugins/Databases/PostgresQL/Check-postgres-replication/details

Edited by adding password as variable parameter on CLI ./myscript parameter1 parameter2... password

HOW TO USE:

The script needs bc (Basic Calculator) (yum install bc -y)

Set Permissions xr permission (chmod 700 check_postgres_rep.sh, 555 etc..)

./check_postgres_rep.sh ip_host_slave slave_port db_postgres ip_master port_master user password

About

Script to check postgres replication

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages