libzbxpgsql
libzbxpgsql copied to clipboard
How to pass the PGCONFIGFILE to configure/make?
Hi, How can I pass the PGCONFIGFILE variable to configure/make? I have tried: export PGCONFIGFILE=/opt/local/etc/zabbix/libzbxpgsql.conf but it doesn't works for me. I would like to set it without editing the src/pg_config.c
Thanks you in advance
PGCONFIGFILE is a runtime environment variable, and is not configurable at compile-time (except if you modify the source of course).
You should export this environment variable in the startup script of your Zabbix agent so it is available at runtime. Depending on your operating system, this might be in /etc/init.d/ or a systemd unit file.