Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read-write acces necessary? #36

Open
marcelmikusik opened this issue Mar 3, 2017 · 1 comment
Open

read-write acces necessary? #36

marcelmikusik opened this issue Mar 3, 2017 · 1 comment

Comments

@marcelmikusik
Copy link

marcelmikusik commented Mar 3, 2017

Hello have you use "postgres" USER for monitoring?
What about to use read only access role to monitor? For example zabbix user.

@rsn86
Copy link

rsn86 commented Oct 1, 2019

Write permission isn't necessary.

Starting of PostgreSQL 10 you can use a regular user with the default role pg_monitor.
CREATE ROLE zabbix WITH LOGIN NOSUPERUSER; GRANT ROLE pg_monitor TO zabbix;

Before that, you have to ensure that user has GRANT SELECT on ALL monitored objects and to monitor streaming replication you can create a helper function with security definer.
Take a look at #6 (comment)
Run that as user postgres at PGDATABASE database (postgres by default).

Regards,
Rodrigo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants