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 performance data on custom_query #183

Open
majales opened this issue Aug 31, 2021 · 0 comments
Open

Wrong performance data on custom_query #183

majales opened this issue Aug 31, 2021 · 0 comments

Comments

@majales
Copy link

majales commented Aug 31, 2021

I have found GraphiteWriter complaining about bad performance data from check_postgres.

warning/GraphiteWriter: Ignoring invalid perfdata value: subscription_name=db_partial_set;down

In fact check is returning bad performance data with "warning" value added to the perfomance data.

'/usr/lib/nagios/plugins/check_postgres.pl' '--action' 'custom_query' '--query' 'SELECT subscription_name, status AS result  FROM pglogical.show_subscription_status();' '--valtype' 'string' '-H' 'localhost' '-db' 'db' '-u' 'icinga' '-w' 'down'
POSTGRES_CUSTOM_QUERY OK: DB "db" (host:localhost) replicating | time=0.04s subscription_name=db_partial_set;down

I'm using latest check_postgres version.

/usr/lib/nagios/plugins/check_postgres.pl --version
check_postgres.pl version 2.25.0

Is there any workaround how to switch off perfdata? Thanx

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