mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 05:35:01 +02:00
fix(sql): mode collection - handle empty sql requests (#3287)
This commit is contained in:
parent
3a89dc62e7
commit
140fa3ec50
@ -218,6 +218,7 @@ sub collect_sql_tables {
|
||||
$options{sql}->query(query => $table->{query});
|
||||
$self->add_builtin(name => 'sqlExecutionTime.' . $table->{name}, value => tv_interval($timing0, [gettimeofday]));
|
||||
|
||||
$self->{sql_collected}->{tables}->{ $table->{name} } = {};
|
||||
my $i = 0;
|
||||
while (my $entry = $options{sql}->fetchrow_hashref()) {
|
||||
my $instance = $i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user