-
Put check_pgreplication.py to /etc/zabbix/scripts
-
Install psycopg2 python module
-
Write down to zabbix_agentd.conf
UserParameter=check_pgreplication,/etc/zabbix/scripts/check_pgreplication.py --master_ip=<ip> --standby_ip=<ip> --master_user=<user> --master_passwd=<pass> -
Write down to master and standby pg_hba.conf
host postgres replmon 0.0.0.0/0 md5 -
Execute such sql statements on master server:
postgres=# CREATE ROLE replmon NOSUPERUSER LOGIN password 'passW00rd'; -
Import postgresql_template.xml into zabbix.
-
Notifications
You must be signed in to change notification settings - Fork 0
suppix/postgresql
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published