Modify userparam file for Gentoo

This commit is contained in:
James Campbell 2024-06-06 00:27:43 -04:00
parent 467e97f4e7
commit f528d92030
Signed by: james
GPG Key ID: 2287C33A40DC906A
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
UserParameter=pgmon[*],/usr/bin/pgmon -s "/run/pgmon/$1.socket" "$2,$3,$4,$5,$6,$7,$8,$9"

View File

@ -50,7 +50,7 @@ src_install() {
# Install Zabbix userparams file # Install Zabbix userparams file
if use agent; then if use agent; then
insinto /etc/zabbix/zabbix_agent.d insinto /etc/zabbix/zabbix_agent.d
newins "${S}/pgmon_userparameter.conf" pgmon.conf newins "${FILESDIR}/pgmon_userparameter.conf" pgmon.conf
fperms 0644 /etc/zabbix/zabbix_agent.d/pgmon.conf fperms 0644 /etc/zabbix/zabbix_agent.d/pgmon.conf
fowners root:zabbix /etc/zabbix/zabbix_agent.d/pgmon.conf fowners root:zabbix /etc/zabbix/zabbix_agent.d/pgmon.conf
fi fi