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

Wrong params in userparameter_pgsql.conf for UserParameter=pgsql.get.pg.stat_database #20

Open
bastelfreak opened this issue Dec 11, 2015 · 3 comments

Comments

@bastelfreak
Copy link

Hi, the userparameter_pgsql.conf currently has:

UserParameter=pgsql.get.pg.stat_database[*],"$1"/pgsql_db_funcs.sh pg.stat_database "$2" "$3" "$4" "$5"

which results in:

/usr/local/bin/pgsql_db_funcs.sh  pg.stat_database /usr/local/etc $(hostname) zabbix-server 10051

I think the correct call should be:

/usr/local/bin/pgsql_db_funcs.sh  pg.stat_database /usr/local/etc $(hostname) /etc/zabbix/zabbix_agentd.conf $databasetocheck

could you take a look please?

@bastelfreak
Copy link
Author

after fiddling around I noticed that the check is working fine, just the docs are wrong IMO?

@tomomatsuzaki
Copy link

I don't get pg.stat_database data. Is there something wrong in userparameter file?

@mhorne484
Copy link

pg.stat_database remains empty on my installation.

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

3 participants