~percona-toolkit-dev/percona-monitoring-plugins/1.1

« back to all changes in this revision

Viewing changes to nagios/bin/pmp-check-mysql-deadlocks

MergedĀ lp:~roman-vynar/percona-monitoring-plugins/pmp-mysql-login-path-supportĀ branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
         -H)              shift; OPT_HOST="${1}"; shift; ;;
36
36
         -i)              shift; OPT_INTERVAL="${1}"; shift; ;;
37
37
         -l)              shift; OPT_USER="${1}"; shift; ;;
 
38
         -L)              shift; OPT_LOPA="${1}"; shift; ;;
38
39
         -p)              shift; OPT_PASS="${1}"; shift; ;;
39
40
         -P)              shift; OPT_PORT="${1}"; shift; ;;
40
41
         -S)              shift; OPT_SOCK="${1}"; shift; ;;
85
86
mysql_exec() {
86
87
   mysql ${OPT_DEFT:+--defaults-file="${OPT_DEFT}"} ${OPT_HOST:+-h"${OPT_HOST}"} ${OPT_USER:+-u"${OPT_USER}"} \
87
88
      ${OPT_PASS:+-p"${OPT_PASS}"} ${OPT_SOCK:+-S"${OPT_SOCK}"} ${OPT_PORT:+-P"${OPT_PORT}"} \
88
 
      -ss -e "$1"
 
89
      ${OPT_LOPA:+--login-path="${OPT_LOPA}"} -ss -e "$1"
89
90
}
90
91
 
91
92
# ########################################################################
133
134
    -H HOST         MySQL hostname.
134
135
    -i INTERVAL     Interval over which to count, in minutes; default 1.
135
136
    -l USER         MySQL username.
 
137
    -L LOGIN-PATH   Use login-path to access MySQL (with MySQL client 5.6).
136
138
    -p PASS         MySQL password.
137
139
    -P PORT         MySQL port.
138
140
    -S SOCKET       MySQL socket file.