We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When custom_query returns multiple rows, their performance data string is duplicated in subsequent rows. For example:
custom_query
./check_postgres.pl --action=custom_query --dbname=postgres --dbuser=peisentraut --warning=100 --query="select 30 as result, 'foo' as data union select 20, 'bar' union select 10, 'baz' order by 1 desc" POSTGRES_CUSTOM_QUERY OK: DB "postgres" 30 * 20 * 10 | time=0.08s data=foo;100 time=0.08s data=foo;100 data=bar;100 time=0.08s data=foo;100 data=bar;100; data=baz;100
Correct would be
POSTGRES_CUSTOM_QUERY OK: DB "postgres" 30 * 20 * 10 | time=0.08s data=foo;100 time=0.08s data=bar;100 time=0.08s data=baz;100
The fix appears to be to change line 4100
$db->{perf} .= sprintf ' %s=%s;%s;%s',
to
$db->{perf} = sprintf ' %s=%s;%s;%s',
The text was updated successfully, but these errors were encountered:
avoid duplicate perfdata for multirow custom_query
40ad646
Addresses concern raised in [Issue bucardo#69](bucardo#69)
No branches or pull requests
When
custom_query
returns multiple rows, their performance data string is duplicated in subsequent rows. For example:Correct would be
The fix appears to be to change line 4100
to
The text was updated successfully, but these errors were encountered: