Commit 0b04c61a authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We don't need deviceid user parameter here, defined elsewhere

parent b70bac21
...@@ -38,7 +38,6 @@ all: postgresql-service ...@@ -38,7 +38,6 @@ all: postgresql-service
sed -i "s/^#listen_addresses = .*/listen_addresses = '*'/" /srv/pgsql/data/postgresql.conf sed -i "s/^#listen_addresses = .*/listen_addresses = '*'/" /srv/pgsql/data/postgresql.conf
sed -i "s/^#password_encryption = .*/password_encryption = scram-sha-256/" /srv/pgsql/data/postgresql.conf sed -i "s/^#password_encryption = .*/password_encryption = scram-sha-256/" /srv/pgsql/data/postgresql.conf
echo "host all all 0.0.0.0/0 scram-sha-256" >> /srv/pgsql/data/pg_hba.conf echo "host all all 0.0.0.0/0 scram-sha-256" >> /srv/pgsql/data/pg_hba.conf
echo 'UserParameter=device.id,/usr/sbin/deviceid' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=pgsql.replication.status[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.status.sql"' >> /etc/zabbix_agentd.userparams.conf echo 'UserParameter=pgsql.replication.status[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.status.sql"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=pgsql.replication.lag.sec[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"' >> /etc/zabbix_agentd.userparams.conf echo 'UserParameter=pgsql.replication.lag.sec[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.lag.sql"' >> /etc/zabbix_agentd.userparams.conf
echo 'UserParameter=pgsql.replication.recovery_role[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.recovery_role.sql"' >> /etc/zabbix_agentd.userparams.conf echo 'UserParameter=pgsql.replication.recovery_role[*], psql -qtAX postgresql://"$$3":"$$4"@"$$1":"$$2"/"$$5" -f "/var/lib/zabbix/postgresql/pgsql.replication.recovery_role.sql"' >> /etc/zabbix_agentd.userparams.conf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment