-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to support empty password in cnf #686
Comments
I'm looking for an option to use mysqld_exporter with no password. (Yes I know the security risk, it is not under my control) |
Recent versions of mysqld (Enterprise) and mariadb don't even require passwords for root; they use PAM authentication. By default. https://dev.mysql.com/doc/refman/8.0/en/pam-pluggable-authentication.html Please remove the hard requirement for a |
I have a different reason for the same need: I'm trying to set up a connection of mysqld_exporter version |
@strafer Good catch, we should actually support no password. I think the no password check is a simple mistake in the changes to the config package. |
Empty passwords are allowed for UNIX socket connections and when using TLS auth. Fixes: #686 Signed-off-by: SuperQ <superq@gmail.com>
Empty passwords are allowed for UNIX socket connections and when using TLS auth. Fixes: #686 Signed-off-by: SuperQ <superq@gmail.com>
Empty passwords are allowed for UNIX socket connections and when using TLS auth. Fixes: #686 Signed-off-by: SuperQ <superq@gmail.com>
Has this been fixed? I am running into this error:
With the following setup:
Edit: Fixed by setting |
Host operating system: output of
uname -a
uname -a
Linux icmmaster 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
mysqld_exporter version: output of
mysqld_exporter --version
node_exporter --version
node_exporter, version 1.1.2 (branch: HEAD, revision: b597c1244d7bef49e6f3359c87a56dd7707f6719)
build user: root@f07de8ca602a
build date: 20210305-09:29:10
go version: go1.15.8
platform: linux/amd64
MySQL server version
5.5.68-MariaDB
mysqld_exporter command line flags
mysqld_exporter --config.my-cnf /home/user/monitoring/conf/.mysql_exporter.cnf --collect.global_status --collect.info_schema.innodb_metrics --collect.auto_increment.columns --collect.info_schema.processlist --collect.binlog_size --collect.info_schema.tablestats --collect.global_variables --collect.info_schema.query_response_time --collect.info_schema.userstats --collect.info_schema.tables --collect.perf_schema.tablelocks --collect.perf_schema.file_events --collect.perf_schema.eventswaits --collect.perf_schema.indexiowaits --collect.perf_schema.tableiowaits --collect.slave_status --web.listen-address=0.0.0.0:9104
cat /home/user/monitoring/conf/.mysql_exporter.cnf
[client]
user=metricsexporter
password=
What did you do that produced an error?
What did you expect to see?
mysqld_exporter to run with skip password option when password is set to null
What did you see instead?
Nov 28 21:56:45 myhost mysqld_exporter: level=info ts=2022-11-29T05:56:45.246Z caller=mysqld_exporter.go:284 msg="Error parsing my.cnf" file=/home/icmanage/monitoring/conf/.mysql_exporter.cnf err="password or ssl-key should be specified under [client] in /home/icmanage/monitoring/conf/.mysql_exporter.cnf"
The text was updated successfully, but these errors were encountered: