Skip to content
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

check_mysql does not respect !includedir directive in cnf file #692

Open
sawolf opened this issue Mar 20, 2023 · 0 comments
Open

check_mysql does not respect !includedir directive in cnf file #692

sawolf opened this issue Mar 20, 2023 · 0 comments
Labels

Comments

@sawolf
Copy link
Member

sawolf commented Mar 20, 2023

Originally appended to #383, which seems to be a separate issue:

My problem with check_mysql is that it's parsing the /etc/my.cnf file using its own parse logic that does not respect or understand !includedir statements. The /etc/my.cnf file supplied by MariaDB contains the following statement:
!includedir /etc/my.cnf.d
check_mysql does not interpret this statement or read the files nested therein. A nested config file is where I have a password=blah statement, which is never seen. If I replace the original /etc/my.cnf file with the contents of my nested file then check_mysql works. I shouldn't have to use a -f option to get check_mysql to only read my specific nested configuration file; ALL files in the hierarchy are significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant