A, zabbix monitor configuration postgres
-ivh https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-3.noarch.rpm RPM yum the install-libs # -Y installed postgresql95 negligible yum -y install libconfig # already installed can be ignored
Download and import postgresql monitoring template:
Links: https://github.com/cavaliercoder/libzbxpgsql/tree/master/templates
[root@WW-SYG-DB1 zabbix]# tail -f zabbix_agentd.log 15149:20191029:130437.572 cannot load module "libzbxpgsql.so": /usr/local/zabbix/lib/libzbxpgsql.so: undefined symbol: __zbx_zbx_snprintf 15149:20191029:130437.572 loading modules failed, exiting... 15177:20191029:130447.616 Starting Zabbix Agent [192.168.10.11]. Zabbix 4.2.5 (revision 2c0e4d1d39). 15177:20191029:130447.616 **** Enabled features **** 15177:20191029:130447.616 IPv6 support: YES 15177:20191029:130447.616 TLS support: YES 15177:20191029:130447.616 **************************
Reference: https://support.zabbix.com/browse/ZBX-16028
Download: https: //support.zabbix.com/secure/attachment/89260/89260_libzbxpgsql.so