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

backends: When using --include DB, use this DB name in output #199

Open
Napsty opened this issue Jul 12, 2023 · 0 comments
Open

backends: When using --include DB, use this DB name in output #199

Napsty opened this issue Jul 12, 2023 · 0 comments

Comments

@Napsty
Copy link

Napsty commented Jul 12, 2023

Hello and thanks for this great plugin!

When using the --include parameter to specify a database, the output still shows DB "postgres". This is confusing.
In the performance data however we can see the correct database (mydb).

ck@pgsql~$ /usr/lib/nagios/plugins/check_postgres.pl --action backends --dbpass secret -H 127.0.0.1 -u monitoring --include mydb
POSTGRES_BACKENDS OK: DB "postgres" (host:127.0.0.1) 50 of 100 connections (50%) | time=0.05s mydb=50;90;95;0;100 

Suggestion: When using a single include database, use this database name in the plugin output.

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

1 participant