diff --git a/centreon-plugins/database/postgres/mode/backends.pm b/centreon-plugins/database/postgres/mode/backends.pm index aabca7a7d..5aedb0fbd 100644 --- a/centreon-plugins/database/postgres/mode/backends.pm +++ b/centreon-plugins/database/postgres/mode/backends.pm @@ -61,7 +61,7 @@ sub run { my $noidle = ''; if (defined($self->{option_results}->{noidle})) { - if ($self->{sql}->is_version_minimum(version => '9.2')) { + if ($options{sql}->is_version_minimum(version => '9.2')) { $noidle = " AND state <> 'idle'"; } else { $noidle = " AND current_query <> ''";