diff --git a/centreon-plugins/database/postgres/psqlcmd.pm b/centreon-plugins/database/postgres/psqlcmd.pm index 194d1a275..8386dd687 100644 --- a/centreon-plugins/database/postgres/psqlcmd.pm +++ b/centreon-plugins/database/postgres/psqlcmd.pm @@ -183,6 +183,7 @@ sub command_execution { my ($self, %options) = @_; my ($stdout, $exit_code) = centreon::plugins::misc::execute( + output => $self->{output}, command => $self->{psql_cmd}, command_options => join(' ', @{$self->{args}}) . ' -c "' . $options{request} . '"', wait_exit => 1,