login-path is positional
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Seems the login-path mysql client option has become positional and broke https:/
With unpatched plugins:
[root@sphinx1 plugins]# sudo -u nagios -H /usr/lib64/
mysql: unknown variable 'login-path=rds'
UNK could not retrieve MySQL processlist
With the patch:
[root@sphinx1 plugins]# diff pmp-check-
174c174
< mysql ${OPT_DEFT:
---
> mysql ${OPT_DEFT:
176c176
< -ss -e "$1"
---
> ${OPT_LOPA:
[root@sphinx1 plugins]#
[root@sphinx1 plugins]# sudo -u nagios -H /usr/lib64/
OK 0 unauthenticated, 0 locked, 0 copy to table, 0 statistics | processes=
Changed in percona-monitoring-plugins: | |
status: | Fix Committed → Fix Released |
Thanks Jervin.
The problem is described by Sveta here https:/ /bugs.mysql. com/bug. php?id= 70856
--login-path option should be specified before other credential options if they are given.
Using --login-path alone works fine.
So I moved it.