(plugin) database::mssql::mode - fix typos from previous refactoring (#4066)

Co-authored-by: lchrdn <lchardon@centreon.com>
This commit is contained in:
Simon Bomm 2022-11-16 15:31:37 +01:00 committed by GitHub
parent b5d9c5783f
commit 999933125e
4 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ sub manage_selection {
)
});
my $hitratio = $self->{sql}->fetchrow_array();
my $hitratio = $options{sql}->fetchrow_array();
$self->{hit_ratio}->{value} = $hitratio;
}

View File

@ -59,7 +59,7 @@ sub manage_selection {
$options{sql}->connect();
$options{sql}->query(query => q{SELECT count(*) FROM master..sysprocesses WHERE spid >= '51'});
my $connected_count = $self->{sql}->fetchrow_array();
my $connected_count = $options{sql}->fetchrow_array();
$self->{connected_user}->{value} = $connected_count;
}

View File

@ -71,7 +71,7 @@ sub manage_selection {
counter_name = 'Number of Deadlocks/sec%'
});
my $query_result = $self->{sql}->fetchall_arrayref();
my $query_result = $options{sql}->fetchall_arrayref();
$self->{deadlocks}->{value} = 0;
foreach my $row (@{$query_result}) {

View File

@ -31,7 +31,7 @@ sub set_counters {
{ name => 'lockswaits', type => 0 },
];
$self->{maps_counters}->{deadlocks} = [
$self->{maps_counters}->{lockswaits} = [
{ label => 'lockswaits', nlabel => 'mssql.lockswaits.count', set => {
key_values => [ { name => 'value' } ],
output_template => '%.2f dead locks/s',
@ -71,7 +71,7 @@ sub manage_selection {
counter_name = 'Lock Waits/sec%'
});
my $query_result = $self->{sql}->fetchall_arrayref();
my $query_result = $options{sql}->fetchall_arrayref();
$self->{lockswaits}->{value} = 0;
foreach my $row (@{$query_result}) {