(plugin) database::mssql - mode loackswaits fix help (#4296)

This commit is contained in:
qgarnier 2023-03-23 14:15:16 +01:00 committed by David Boucher
parent f5e579f5bc
commit 31f96269c4
1 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ sub set_counters {
my ($self, %options) = @_;
$self->{maps_counters_type} = [
{ name => 'lockswaits', type => 0 },
{ name => 'lockswaits', type => 0 }
];
$self->{maps_counters}->{lockswaits} = [
@ -36,10 +36,10 @@ sub set_counters {
key_values => [ { name => 'value' } ],
output_template => '%.2f dead locks/s',
perfdatas => [
{ template => '%.2f', min => 0 },
],
{ template => '%.2f', min => 0 }
]
}
},
}
];
}
@ -50,7 +50,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
"filter-database:s" => { name => 'filter_database' },
'filter-database:s' => { name => 'filter_database' }
});
return $self;
@ -91,11 +91,11 @@ Check MSSQL locks-waits per second
=over 8
=item B<--warning-lockswait>
=item B<--warning-lockswaits>
Threshold warning number of lock-waits per second.
=item B<--critical-lockswait>
=item B<--critical-lockswaits>
Threshold critical number of lock-waits per second.