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

documentation on how to configure mysql template #21

Open
OrwinLopes opened this issue Sep 11, 2019 · 3 comments
Open

documentation on how to configure mysql template #21

OrwinLopes opened this issue Sep 11, 2019 · 3 comments

Comments

@OrwinLopes
Copy link

can you please share documentation on how to configure mysql template

@kloczek
Copy link
Owner

kloczek commented Sep 12, 2019

Just committed changes on devel branch with details what needs to be don to monitor MySQL.
If you think that it is enough clear please close that ticket :)

@OrwinLopes
Copy link
Author

Thanks alot but i get this error. can you please help :-

[root@zabbixdb bin]# su - zabbix -s /bin/bash -c "mysql_config_editor set --login-path=monitoring --user monitoring --password"
su: warning: cannot change directory to /usr/lib/zabbix: No such file or directory
mysql_config_editor: Can't create/write to file '/usr/lib/zabbix/.mylogin.cnf' (OS errno 2 - No such file or directory)
couldn't create the login file : No such file or directory
mysql_config_editor: Error on close of 'UNKNOWN' (OS errno 9 - Bad file descriptor)
operation failed. : Bad file descriptor

@OrwinLopes
Copy link
Author

i can see the direcotry should be /usr/lib/zabbix ? i might be wrong...can u confirm

mkdir -p /var/lib/zabbix (should be /usr/lib/zabbix)
chwon zabbix:zabbix /var/lib/zabbix
chmod 700 /var/lib/zabbix
su - zabbix -s /bin/bash -c "mysql_config_editor set --login-path=monitoring --user monitoring --password"

after changing it gives this below error :-
su - zabbix -s /bin/bash -c "mysql_config_editor set --login-path=monitoring --user monitoring --password"
su: warning: cannot change directory to /usr/lib/zabbix: Permission denied
-bash: /usr/lib/zabbix/.bash_profile: Permission denied
mysql_config_editor: Can't create/write to file '/usr/lib/zabbix/.mylogin.cnf' (OS errno 13 - Permission denied)
couldn't create the login file : Permission denied
mysql_config_editor: Error on close of 'UNKNOWN' (OS errno 9 - Bad file descriptor)

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

No branches or pull requests

2 participants