mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
check_pgsql: Don't exit UNKNOWN instead of OK
Since commit 912df3ef9b, check_pgsql
exited UNKNOWN instead of OK if the new --query option was *not*
specified. This bug is fixed now.
This commit is contained in:
parent
843bbfb75a
commit
6f0366c8b8
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ main (int argc, char **argv)
|
|||
if (verbose)
|
||||
printf("Closing connection\n");
|
||||
PQfinish (conn);
|
||||
return (query_status > status) ? query_status : status;
|
||||
return (pgquery && query_status > status) ? query_status : status;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue