-
Notifications
You must be signed in to change notification settings - Fork 66
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
/usr/bin/mysql: unknown variable 'login-path=monitoring' #17
Comments
Ha you just hit something which I forgot to document :/ {$MYSQL_CMD} => HOME=/var/lib/zabbix /usr/bin/mysql --login-path=monitoring -Nse You need to create /var/lib/zabbix directory and using mysql_config_editor program store in it .mylogin.cnf file with details about username, password and address of the mysql server. Just use command like below:
Than you need to change ownership of the /var/lib/zabbix FYI I've started writing my own agent loadable module to provide template template items abstractions but this module is not finished yet. https://github.com/kloczek/zbx_mod_mysql |
@kloczek after I do those steps I lost connection to my DB on zabbix, and coudn't open zabbix's website: Error connecting to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111). Any idea why this happened? And how can I avoid it? |
First: are you able to connect to the mysql database using mysql client command? |
I get a /usr/bin/mysql: unknown variable 'login-path=monitoring' on all items in Zabbix.
Executing on host:
zabbix_agentd -t "mysql.version"
gives proper response:
mysql.version [t|mysql Ver 15.1 Distrib 10.3.10-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2]
The text was updated successfully, but these errors were encountered: