(plugin) database::mssql::mode - fix typos from previous refactoring (#4066)
Co-authored-by: lchrdn <lchardon@centreon.com>
This commit is contained in:
parent
b5d9c5783f
commit
999933125e
|
@ -73,7 +73,7 @@ sub manage_selection {
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
my $hitratio = $self->{sql}->fetchrow_array();
|
my $hitratio = $options{sql}->fetchrow_array();
|
||||||
$self->{hit_ratio}->{value} = $hitratio;
|
$self->{hit_ratio}->{value} = $hitratio;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ sub manage_selection {
|
||||||
$options{sql}->connect();
|
$options{sql}->connect();
|
||||||
$options{sql}->query(query => q{SELECT count(*) FROM master..sysprocesses WHERE spid >= '51'});
|
$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;
|
$self->{connected_user}->{value} = $connected_count;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ sub manage_selection {
|
||||||
counter_name = 'Number of Deadlocks/sec%'
|
counter_name = 'Number of Deadlocks/sec%'
|
||||||
});
|
});
|
||||||
|
|
||||||
my $query_result = $self->{sql}->fetchall_arrayref();
|
my $query_result = $options{sql}->fetchall_arrayref();
|
||||||
$self->{deadlocks}->{value} = 0;
|
$self->{deadlocks}->{value} = 0;
|
||||||
|
|
||||||
foreach my $row (@{$query_result}) {
|
foreach my $row (@{$query_result}) {
|
||||||
|
|
|
@ -31,7 +31,7 @@ sub set_counters {
|
||||||
{ name => 'lockswaits', type => 0 },
|
{ name => 'lockswaits', type => 0 },
|
||||||
];
|
];
|
||||||
|
|
||||||
$self->{maps_counters}->{deadlocks} = [
|
$self->{maps_counters}->{lockswaits} = [
|
||||||
{ label => 'lockswaits', nlabel => 'mssql.lockswaits.count', set => {
|
{ label => 'lockswaits', nlabel => 'mssql.lockswaits.count', set => {
|
||||||
key_values => [ { name => 'value' } ],
|
key_values => [ { name => 'value' } ],
|
||||||
output_template => '%.2f dead locks/s',
|
output_template => '%.2f dead locks/s',
|
||||||
|
@ -71,7 +71,7 @@ sub manage_selection {
|
||||||
counter_name = 'Lock Waits/sec%'
|
counter_name = 'Lock Waits/sec%'
|
||||||
});
|
});
|
||||||
|
|
||||||
my $query_result = $self->{sql}->fetchall_arrayref();
|
my $query_result = $options{sql}->fetchall_arrayref();
|
||||||
$self->{lockswaits}->{value} = 0;
|
$self->{lockswaits}->{value} = 0;
|
||||||
|
|
||||||
foreach my $row (@{$query_result}) {
|
foreach my $row (@{$query_result}) {
|
||||||
|
|
Loading…
Reference in New Issue