(plugin) database::mssql - mode loackswaits fix help (#4296)
This commit is contained in:
parent
f5e579f5bc
commit
31f96269c4
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue