change lockstats option snmp informix
This commit is contained in:
parent
5175181bab
commit
59a995f145
|
@ -34,38 +34,38 @@ sub set_counters {
|
||||||
];
|
];
|
||||||
|
|
||||||
$self->{maps_counters}->{global} = [
|
$self->{maps_counters}->{global} = [
|
||||||
{ label => 'deadlks', set => {
|
{ label => 'lock-dead', set => {
|
||||||
key_values => [ { name => 'onServerDeadLocks', diff => 1 }, { name => 'display' } ],
|
key_values => [ { name => 'onServerDeadLocks', diff => 1 }, { name => 'display' } ],
|
||||||
output_template => 'Deadlocks %d',
|
output_template => 'Deadlocks %d',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'deadlks', value => 'onServerDeadLocks_absolute', template => '%s', min => 0,
|
{ label => 'lock_dead', value => 'onServerDeadLocks_absolute', template => '%s', min => 0,
|
||||||
label_extra_instance => 1, instance_use => 'display_absolute' },
|
label_extra_instance => 1, instance_use => 'display_absolute' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ label => 'lockwts', set => {
|
{ label => 'lock-wait', set => {
|
||||||
key_values => [ { name => 'onServerLockWaits', diff => 1 }, { name => 'display' } ],
|
key_values => [ { name => 'onServerLockWaits', diff => 1 }, { name => 'display' } ],
|
||||||
output_template => 'Lock Waits %d',
|
output_template => 'Lock Waits %d',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'lockwts', value => 'onServerLockWaits_absolute', template => '%s', min => 0,
|
{ label => 'lock_wait', value => 'onServerLockWaits_absolute', template => '%s', min => 0,
|
||||||
label_extra_instance => 1, instance_use => 'display_absolute' },
|
label_extra_instance => 1, instance_use => 'display_absolute' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ label => 'lockreqs', set => {
|
{ label => 'lock-request', set => {
|
||||||
key_values => [ { name => 'onServerLockRequests', diff => 1 }, { name => 'display' } ],
|
key_values => [ { name => 'onServerLockRequests', diff => 1 }, { name => 'display' } ],
|
||||||
output_template => 'Lock Requests %d',
|
output_template => 'Lock Requests %d',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'lockreqs', value => 'onServerLockRequests_absolute', template => '%s', min => 0,
|
{ label => 'lock_request', value => 'onServerLockRequests_absolute', template => '%s', min => 0,
|
||||||
label_extra_instance => 1, instance_use => 'display_absolute' },
|
label_extra_instance => 1, instance_use => 'display_absolute' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ label => 'lktouts', set => {
|
{ label => 'lock-timeout', set => {
|
||||||
key_values => [ { name => 'onServerLockTimeouts', diff => 1 }, { name => 'display' } ],
|
key_values => [ { name => 'onServerLockTimeouts', diff => 1 }, { name => 'display' } ],
|
||||||
output_template => 'Lock Timeouts %d',
|
output_template => 'Lock Timeouts %d',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ label => 'lktouts', value => 'onServerLockTimeouts_absolute', template => '%s', min => 0,
|
{ label => 'lock_timeout', value => 'onServerLockTimeouts_absolute', template => '%s', min => 0,
|
||||||
label_extra_instance => 1, instance_use => 'display_absolute' },
|
label_extra_instance => 1, instance_use => 'display_absolute' },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -144,12 +144,12 @@ Check instance locks.
|
||||||
=item B<--warning-*>
|
=item B<--warning-*>
|
||||||
|
|
||||||
Threshold warning.
|
Threshold warning.
|
||||||
Can be: 'deadlks', 'lockwts', 'lockreqs', 'lktouts'.
|
Can be: 'lock-dead', 'lock-wait', 'lock-request', 'lock-timeout'.
|
||||||
|
|
||||||
=item B<--critical-*>
|
=item B<--critical-*>
|
||||||
|
|
||||||
Threshold critical.
|
Threshold critical.
|
||||||
Can be: 'deadlks', 'lockwts', 'lockreqs', 'lktouts'.
|
Can be: 'lock-dead', 'lock-wait', 'lock-request', 'lock-timeout'.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
|
@ -37,9 +37,9 @@ sub new {
|
||||||
'global-cache' => 'database::informix::snmp::mode::globalcache',
|
'global-cache' => 'database::informix::snmp::mode::globalcache',
|
||||||
'list-dbspaces' => 'database::informix::snmp::mode::listdbspaces',
|
'list-dbspaces' => 'database::informix::snmp::mode::listdbspaces',
|
||||||
'list-instances' => 'database::informix::snmp::mode::listinstances',
|
'list-instances' => 'database::informix::snmp::mode::listinstances',
|
||||||
|
'lock-stats' => 'database::informix::snmp::mode::lockstats',
|
||||||
'logfile-usage' => 'database::informix::snmp::mode::logfileusage',
|
'logfile-usage' => 'database::informix::snmp::mode::logfileusage',
|
||||||
'sessions' => 'database::informix::snmp::mode::sessions',
|
'sessions' => 'database::informix::snmp::mode::sessions',
|
||||||
'lock-stats' => 'database::informix::snmp::mode::lockstats',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
|
Loading…
Reference in New Issue