@@ -61,7 +61,7 @@ main() {
6161 exit 1
6262 fi
6363 fi
64- if [ " ${OPT_TARGET} " == " kills" ]; then
64+ if [ " ${OPT_TARGET} " == " kills" ]; then
6565 OPT_TABLE=" ${OPT_TABLE:- percona.kill_log} "
6666 OPT_TIMESTAMP=" ${OPT_TIMESTAMP:- timestamp} "
6767 elif [ " ${OPT_TARGET} " == " fkerrors" ]; then
@@ -96,9 +96,11 @@ main() {
9696# Execute a MySQL command.
9797# ########################################################################
9898mysql_exec () {
99- mysql ${OPT_DEFT: +--defaults-file=" ${OPT_DEFT} " } ${OPT_HOST: +-h" ${OPT_HOST} " } ${OPT_USER: +-u" ${OPT_USER} " } \
100- ${OPT_PASS: +-p" ${OPT_PASS} " } ${OPT_SOCK: +-S" ${OPT_SOCK} " } ${OPT_PORT: +-P" ${OPT_PORT} " } \
101- ${OPT_LOPA: +--login-path=" ${OPT_LOPA} " } -ss -e " $1 "
99+ mysql ${OPT_DEFT: +--defaults-file=" ${OPT_DEFT} " } \
100+ ${OPT_LOPA: +--login-path=" ${OPT_LOPA} " } \
101+ ${OPT_HOST: +-h" ${OPT_HOST} " } ${OPT_PORT: +-P" ${OPT_PORT} " } \
102+ ${OPT_USER: +-u" ${OPT_USER} " } ${OPT_PASS: +-p" ${OPT_PASS} " } \
103+ ${OPT_SOCK: +-S" ${OPT_SOCK} " } -ss -e " $1 "
102104}
103105
104106# ########################################################################
@@ -162,9 +164,9 @@ pmp-check-mysql-ts-count - Generic alert based on pmp-check-mysql-deadlocks to c
162164
163165=head1 DESCRIPTION
164166
165- This Nagios plugin looks at a table and counts the number of rows since the
166- last interval, and alerts if this exceeds the threshold. This could be the
167- table referenced by pt-deadlock-logger, pt-kill, pt-fk-error-logger, or a
167+ This Nagios plugin looks at a table and counts the number of rows since the
168+ last interval, and alerts if this exceeds the threshold. This could be the
169+ table referenced by pt-deadlock-logger, pt-kill, pt-fk-error-logger, or a
168170custom table supplied.
169171Default behaviour is the same as pmp-check-mysql-deadlocks, can also specify
170172target to be C<kills> or C<fkerrors> to monitor default tables created by pt-kill
@@ -182,7 +184,7 @@ C<SELECT> from the supplied table.
182184
183185=back
184186
185- This plugin executes no UNIX commands that may need special privileges.
187+ This plugin executes no UNIX commands that may need special privileges.
186188
187189=head1 COPYRIGHT, LICENSE, AND WARRANTY
188190
0 commit comments