I have a Zabbix 3.0 instance on CentOS 7.2, I've added the pg_monz extension for monitoring my PostgreSQL streaming replication.
I currently have this in my Zabbix interface;
DB1
- host_groups
- PostgreSQL
- Linux Servers
- templates
- Template OS Linux
- Template App PostgreSQL SR
- Template App PostgreSQL SR Cluster
- host_groups
DB2
- host_groups;
- PostgreSQL
- Linux Servers
- templates;
- Template OS Linux
- Template App PostgreSQL SR
- host_groups;
On the 'latest data' tab, filtered to host_group PostgreSQL
DB1
- pg.cluster.status
- all items greyed out
- pg.cluster.status
DB2
- pg.cluster.status
- Number of primary server 1
- Number of running PostgreSQL server 1
- Number of standby server 0
- pg.cluster.status
Can someone please clarify the setup for monitoring streaming replication, I'm sure I've mixed something up in my templates.
I would expect DB1 to show one primary, two running postgresql server and one standby server. The documentation is a little vague for pg_monz.